summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2019-09-20 13:57:47 +0200
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2019-09-20 14:17:40 +0200
commit488f24540d087ae98fff4b3a4de82bdf9acbc72c (patch)
treea13472997ad97d290095d47c77219da0510ed339
parent4d41739403202c6717f9c2a1a9321d2ef76caeee (diff)
downloadqttools-488f24540d087ae98fff4b3a4de82bdf9acbc72c.tar.gz
Doc: Explain that property editor cannot handle custom class properties
That is, Q_PROPERTY types for custom types that have been declared with Q_DECLARE_METATYPE(). Fixes: QTBUG-17816 Change-Id: I48c33af13d85b877596caca4fbd1103bf383d6e8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--src/designer/src/lib/sdk/propertysheet.qdoc29
1 files changed, 18 insertions, 11 deletions
diff --git a/src/designer/src/lib/sdk/propertysheet.qdoc b/src/designer/src/lib/sdk/propertysheet.qdoc
index 4e0ccddf2..e5ab420f4 100644
--- a/src/designer/src/lib/sdk/propertysheet.qdoc
+++ b/src/designer/src/lib/sdk/propertysheet.qdoc
@@ -68,17 +68,24 @@
also provides an interface for creating custom property sheet
extensions.
- \warning \QD uses the QDesignerPropertySheetExtension to feed its
- property editor. Whenever a widget is selected in its workspace,
- \QD will query for the widget's property sheet extension. If the
- selected widget has an implemented property sheet extension, this
- extension will override the default property sheet.
-
- \warning The data types used by the property sheet for some properties
- are opaque custom QVariant types containing additional information
- instead of plain Qt data types.
- For example, this is the case for enumerations, flags,
- icons, pixmaps and strings.
+ Keep the following limitations in mind:
+
+ \list
+ \li \QD uses the QDesignerPropertySheetExtension to feed its
+ property editor. Whenever a widget is selected in its workspace,
+ \QD will query for the widget's property sheet extension. If the
+ selected widget has an implemented property sheet extension, this
+ extension will override the default property sheet.
+
+ \li The data types used by the property sheet for some properties
+ are opaque custom QVariant types containing additional information
+ instead of plain Qt data types. For example, this is the case for
+ enumerations, flags, icons, pixmaps and strings.
+
+ \li \QD's property editor has no implementation for handling
+ Q_PROPERTY types for custom types that have been declared
+ with Q_DECLARE_METATYPE().
+ \endlist
To create a property sheet extension, your extension class must
inherit from both QObject and