QDesignerDynamicPropertySheetExtension Class
The QDesignerDynamicPropertySheetExtension class allows you to manipulate a widget's dynamic properties in Qt Designer's property editor. More...
Header: | #include <QDesignerDynamicPropertySheetExtension> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Designer) target_link_libraries(mytarget PRIVATE Qt6::Designer) |
qmake: | QT += designer |
Public Functions
virtual | ~QDesignerDynamicPropertySheetExtension() |
virtual int | addDynamicProperty(const QString &propertyName, const QVariant &value) = 0 |
virtual bool | canAddDynamicProperty(const QString &propertyName) const = 0 |
virtual bool | dynamicPropertiesAllowed() const = 0 |
virtual bool | isDynamicProperty(int index) const = 0 |
virtual bool | removeDynamicProperty(int index) = 0 |
See also QDesignerPropertySheetExtension and Dynamic Properties.
Member Function Documentation
[virtual constexpr noexcept]
QDesignerDynamicPropertySheetExtension::~QDesignerDynamicPropertySheetExtension()
Destroys the dynamic property sheet extension.
[pure virtual]
int QDesignerDynamicPropertySheetExtension::addDynamicProperty(const QString &propertyName, const QVariant &value)
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.
[pure virtual]
bool QDesignerDynamicPropertySheetExtension::canAddDynamicProperty(const QString &propertyName) const
Returns true if propertyName is a valid, unique name for a dynamic property; otherwise returns false.
[pure virtual]
bool QDesignerDynamicPropertySheetExtension::dynamicPropertiesAllowed() const
Returns true if the widget supports dynamic properties; otherwise returns false.
[pure virtual]
bool QDesignerDynamicPropertySheetExtension::isDynamicProperty(int index) const
Returns true if the property at the given index is a dynamic property; otherwise returns false.
[pure virtual]
bool QDesignerDynamicPropertySheetExtension::removeDynamicProperty(int index)
Removes the dynamic property at the given index. Returns true if the operation succeeds; otherwise returns false.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.