aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-03-20 15:16:30 +0100
committerMitch Curtis <mitch.curtis@qt.io>2018-03-21 11:03:37 +0000
commit38e28745c383d5ce92ec1f2856ce9c78a8486790 (patch)
tree88962d225b2db720126ae9f52da917aae89fffd9
parenta7e58487a4721cb07efb3501a63a9ac3454d7c60 (diff)
Add a section about how to preview custom styles in Qt Quick Designer
There was a question about this recently, but our docs aren't exactly clear about it. Change-Id: I152e88f656505aace26b4a517daf79c9df8745c2 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc
index 3ab07ae2..cabeb528 100644
--- a/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc
+++ b/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc
@@ -171,6 +171,22 @@
your custom style, and place them almost anywhere. It also allows users to
create their own styles for your application.
+ \section3 Previewing Custom Styles in Qt Quick Designer
+
+ Using the approach above, it is possible to preview a custom style
+ in \l {Using Qt Quick Designer}{Qt Quick Designer}. In order to do so,
+ ensure that the project has a
+ \l {Qt Quick Controls 2 Configuration File}{qtquickcontrols2.conf} file,
+ and that the following entry exists:
+
+ \badcode
+ [Controls]
+ Style=MyStyle
+ \endcode
+
+ For more information, take a look at the
+ \l {Qt Quick Controls 2 - Flat Style}{Flat Style example}.
+
\section2 Style-specific C++ Extensions
Sometimes you may need to use C++ to extend your custom style. There are two