QDesignerDynamicPropertySheetExtension Class
La classe QDesignerDynamicPropertySheetExtension vous permet de manipuler les propriétés dynamiques d'un widget dans l'éditeur de propriétés de Qt Widgets Designer. Plus d'informations...
| En-tête : | #include <QDesignerDynamicPropertySheetExtension> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Designer)target_link_libraries(mytarget PRIVATE Qt6::Designer) |
| qmake : | QT += designer |
Fonctions publiques
| 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 |
Voir également QDesignerPropertySheetExtension et Dynamic Properties.
Documentation des fonctions membres
[virtual constexpr noexcept] QDesignerDynamicPropertySheetExtension::~QDesignerDynamicPropertySheetExtension()
Détruit l'extension de la feuille de propriétés dynamique.
[pure virtual] int QDesignerDynamicPropertySheetExtension::addDynamicProperty(const QString &propertyName, const QVariant &value)
Ajoute une propriété dynamique nommée propertyName et fixe sa valeur à value. Renvoie l'index de la propriété si elle a été ajoutée avec succès ; sinon, renvoie -1 pour indiquer un échec.
[pure virtual] bool QDesignerDynamicPropertySheetExtension::canAddDynamicProperty(const QString &propertyName) const
Retourne true si propertyName est un nom valide et unique pour une propriété dynamique ; sinon, retourne false.
[pure virtual] bool QDesignerDynamicPropertySheetExtension::dynamicPropertiesAllowed() const
Retourne true si le widget prend en charge les propriétés dynamiques ; sinon, retourne false.
[pure virtual] bool QDesignerDynamicPropertySheetExtension::isDynamicProperty(int index) const
Renvoie un message vrai si la propriété à l'adresse index est une propriété dynamique ; sinon, il renvoie un message faux.
[pure virtual] bool QDesignerDynamicPropertySheetExtension::removeDynamicProperty(int index)
Supprime la propriété dynamique à l'adresse index. Retourne true si l'opération réussit, sinon retourne false.
© 2026 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.