ID 379595 - PonyStack example SuperTool code uses out-of-date `FormItem` system rather than `FormWidget` system

Follow

Problem summary:

Since Katana 1.0v1, an example SuperTool node type named PonyStack was shipped, that was meant to demonstrate how a SuperTool with a user interface of showing items in a list view and properties of selected items below the list view could be created. Unfortunately, the PonyStack example uses the out-of-date FormItem system, rather than the more modern FormWidget system, for its user interface.

Most of Katana's codebase uses the more modern FormWidget classes within QT4FormWidgets. The two sets of classes represent two different systems of dynamically creating widgets for use in places like the Parameters tab. For most FormItem classes, equivalent FormWidget classes are available, e.g. StringFormItem --> StringFormWidget.

FormItem classes should no longer be used for custom tools.

Steps to reproduce:

  1. Open the Editor.py module of the PonyStack SuperTool example in a text editor, and check how the UI of showing properties of a selected pony is implemented.

Expected behaviour:

The UI of showing properties of a selected pony is implemented using the FormWidget system.

Actual behaviour:

The UI of showing properties of a selected pony is implemented using the out-of-date FormItem system.

Workaround:

The SuperTool code can be modified manually to using the FormWidget system, rather than the FormItem system.

Tested versions/platforms:

  • 1.0v1 - Affected
  • 2.0v1 - Affected
  • 3.0v1 - Affected

Customer version/platform:

Not supplied

    We're sorry to hear that

    Please tell us why