QDesignerDynamicPropertySheetExtension Class
QDesignerDynamicPropertySheetExtension 클래스를 사용하면 Qt Widgets Designer 의 속성 편집기에서 위젯의 동적 속성을 조작할 수 있습니다. 더 보기...
Header: | #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
위젯이 동적 속성을 지원하면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.
[pure virtual]
bool QDesignerDynamicPropertySheetExtension::isDynamicProperty(int index) const
지정된 index 의 속성이 동적 속성인 경우 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.
[pure virtual]
bool QDesignerDynamicPropertySheetExtension::removeDynamicProperty(int index)
지정된 index 에서 동적 속성을 제거합니다. 작업이 성공하면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.
© 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.