Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
dynamicpropertysheet.qdoc
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \class QDesignerDynamicPropertySheetExtension
6
7 \brief The QDesignerDynamicPropertySheetExtension class allows you to
8 manipulate a widget's dynamic properties in \QD's property editor.
9
10 \sa QDesignerPropertySheetExtension, {QObject#Dynamic Properties}{Dynamic Properties}
11
12 \inmodule QtDesigner
13 \since 4.3
14*/
15
16/*!
17 \fn QDesignerDynamicPropertySheetExtension::~QDesignerDynamicPropertySheetExtension()
18
19 Destroys the dynamic property sheet extension.
20*/
21
22/*!
23 \fn bool QDesignerDynamicPropertySheetExtension::dynamicPropertiesAllowed() const
24
25 Returns true if the widget supports dynamic properties; otherwise returns false.
26*/
27
28/*!
29 \fn int QDesignerDynamicPropertySheetExtension::addDynamicProperty(const QString &propertyName, const QVariant &value)
30
31 Adds a dynamic property named \a propertyName and sets its value to \a value.
32 Returns the index of the property if it was added successfully; otherwise returns -1 to
33 indicate failure.
34*/
35
36/*!
37 \fn bool QDesignerDynamicPropertySheetExtension::removeDynamicProperty(int index)
38
39 Removes the dynamic property at the given \a index.
40 Returns true if the operation succeeds; otherwise returns false.
41*/
42
43/*!
44 \fn bool QDesignerDynamicPropertySheetExtension::isDynamicProperty(int index) const
45
46 Returns true if the property at the given \a index is a dynamic property; otherwise
47 returns false.
48*/
49
50/*!
51 \fn bool QDesignerDynamicPropertySheetExtension::canAddDynamicProperty(const QString &propertyName) const
52
53 Returns true if \a propertyName is a valid, unique name for a dynamic
54 property; otherwise returns false.
55
56*/