QDesignerDynamicPropertySheetExtension Class

QDesignerDynamicPropertySheetExtension クラスを使用すると、Qt Widgets Designer のプロパティエディタでウィジェットの動的プロパティを操作できます。詳細...

ヘッダー #include <QDesignerDynamicPropertySheetExtension>
CMake: find_package(Qt6 REQUIRED COMPONENTS Designer)
target_link_libraries(mytarget PRIVATE Qt6::Designer)
qmake: QT += designer

パブリック関数

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

詳しい説明

QDesignerPropertySheetExtension およびDynamic Propertiesも参照

メンバ関数のドキュメント

[virtual constexpr noexcept] QDesignerDynamicPropertySheetExtension::~QDesignerDynamicPropertySheetExtension()

ダイナミック・プロパティ・シート拡張を破棄する。

[pure virtual] int QDesignerDynamicPropertySheetExtension::addDynamicProperty(const QString &propertyName, const QVariant &value)

propertyName というダイナミック・プロパティを追加し、その値をvalue に設定します。追加に成功した場合はプロパティのインデックスを返し、失敗した場合は -1 を返します。

[pure virtual] bool QDesignerDynamicPropertySheetExtension::canAddDynamicProperty(const QString &propertyName) const

propertyName が動的プロパティの有効で一意な名前である場合は true を返し、そうでない場合は false を返します。

[pure virtual] bool QDesignerDynamicPropertySheetExtension::dynamicPropertiesAllowed() const

ウィジェットが動的プロパティをサポートしている場合はtrueを返し、そうでない場合はfalseを返します。

[pure virtual] bool QDesignerDynamicPropertySheetExtension::isDynamicProperty(int index) const

与えられたindex のプロパティがダイナミック・プロパティであれば真を返し、そうでなければ偽を返す。

[pure virtual] bool QDesignerDynamicPropertySheetExtension::removeDynamicProperty(int index)

与えられたindex のダイナミック・プロパティを削除します。操作が成功した場合は true を返し、失敗した場合は false を返します。

© 2025 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.