QDesignerDynamicPropertySheetExtension

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

Inheritance diagram of PySide6.QtDesigner.QDesignerDynamicPropertySheetExtension

Detailed Description

See also

QDesignerPropertySheetExtension Dynamic Properties

class PySide6.QtDesigner.QDesignerDynamicPropertySheetExtension
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.

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.

PySide6.QtDesigner.QDesignerDynamicPropertySheetExtension.dynamicPropertiesAllowed()
Return type

bool

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

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.

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.