QDesignerDynamicPropertySheetExtension#

The QDesignerDynamicPropertySheetExtension class allows you to manipulate a widget’s dynamic properties in Qt Designer’s property editor. More

Synopsis#

Virtual functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

See also

QDesignerPropertySheetExtension Dynamic Properties

class PySide6.QtDesigner.QDesignerDynamicPropertySheetExtension#
abstract PySide6.QtDesigner.QDesignerDynamicPropertySheetExtension.addDynamicProperty(propertyName, value)#
Parameters:
  • propertyName – str

  • value – object

Return type:

int

Adds a dynamic property named propertyName and sets its value to value. Returns the index of the property if it was added successfully; otherwise returns -1 to indicate failure.

abstract PySide6.QtDesigner.QDesignerDynamicPropertySheetExtension.canAddDynamicProperty(propertyName)#
Parameters:

propertyName – str

Return type:

bool

Returns true if propertyName is a valid, unique name for a dynamic property; otherwise returns false.

abstract PySide6.QtDesigner.QDesignerDynamicPropertySheetExtension.dynamicPropertiesAllowed()#
Return type:

bool

Returns true if the widget supports dynamic properties; otherwise returns false.

abstract PySide6.QtDesigner.QDesignerDynamicPropertySheetExtension.isDynamicProperty(index)#
Parameters:

index – int

Return type:

bool

Returns true if the property at the given index is a dynamic property; otherwise returns false.

abstract PySide6.QtDesigner.QDesignerDynamicPropertySheetExtension.removeDynamicProperty(index)#
Parameters:

index – int

Return type:

bool

Removes the dynamic property at the given index. Returns true if the operation succeeds; otherwise returns false.