- class QDesignerDynamicPropertySheetExtension#
The
QDesignerDynamicPropertySheetExtension
class allows you to manipulate a widget’s dynamic properties in Qt Designer's property editor. More…Synopsis#
Methods#
def
__init__()
Virtual methods#
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
- __init__()#
- abstract addDynamicProperty(propertyName, value)#
- Parameters:
propertyName – str
value – object
- Return type:
int
Adds a dynamic property named
propertyName
and sets its value tovalue
. Returns the index of the property if it was added successfully; otherwise returns -1 to indicate failure.- abstract 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 dynamicPropertiesAllowed()#
- Return type:
bool
Returns true if the widget supports dynamic properties; otherwise returns false.
- abstract 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 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.