ID 317214 - TeleParameter widgets do not respect grid layout of surrounding parameter widgets

Follow

Problem summary:

Katana's FormWidget layout system generally lays out widgets for parameters that are part of the same group parameter in a grid with two columns, with names of parameters on the left and values of parameters on the right, similar to a QFormLayout.

It turns out that TeleParameter widgets do not currently respect this grid layouting mechanism. Instead, their respective row contains the name and value widgets in a separate grid that's independent of the surrounding grid.

Steps to reproduce:

  1. Execute the following snippet of NodegraphAPI code in the Python tab:
    
    groupNode = NodegraphAPI.CreateNode('Group', NodegraphAPI.GetRootNode())NodegraphAPI.SetNodeEdited(groupNode, True, True)groupNodeParameters = groupNode.getParameters()groupNodeParameters.createChildNumber('a', 0)bParameter = groupNodeParameters.createChildNumber('b', 0)cParameter = groupNodeParameters.createChildString('c', '')groupNodeParameters.createChildNumber('d', 0)eParameter = groupNodeParameters.createChildNumber('eeeeeee', 0)fParameter = groupNodeParameters.createChildString('f', '')groupNodeParameters.createChildNumber('longestName', 0)cParameter.setExpression('getParam("%s").param.getFullName()'                         % bParameter.getFullName())cParameter.setHintString(repr({'widget': 'teleparam'}))fParameter.setExpression('getParam("%s").param.getFullName()'                         % eParameter.getFullName())fParameter.setHintString(repr({'widget': 'teleparam'}))
  2. Inspect the layout of widgets in the Parameters tab.

Expected behaviour:

All name and value widgets appear in a grid with two columns, with names shown in the left column, and values shown in the right column.

Actual behaviour:

All but the TeleParameter widgets appear in the grid with two columns, with names shown in the left column, and values shown in the right column.

The TeleParameter widgets appear with their name and value widgets layed out separately from the surrounding grid.

Workaround:

No known workaround.

Reproduced versions/platforms:

  • 1.0v1/Linux
  • 2.6v4/Linux

Customer version/platform:

Not supplied

    We're sorry to hear that

    Please tell us why