summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/code/doc_src_stylesheet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/doc/snippets/code/doc_src_stylesheet.cpp')
-rw-r--r--src/widgets/doc/snippets/code/doc_src_stylesheet.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/doc/snippets/code/doc_src_stylesheet.cpp b/src/widgets/doc/snippets/code/doc_src_stylesheet.cpp
index a937498fe5..01f4c528a2 100644
--- a/src/widgets/doc/snippets/code/doc_src_stylesheet.cpp
+++ b/src/widgets/doc/snippets/code/doc_src_stylesheet.cpp
@@ -138,3 +138,7 @@ emailEdit->setProperty("mandatoryField", true);
QSpinBox *ageSpinBox = new QSpinBox(this);
ageSpinBox->setProperty("mandatoryField", true);
//! [95]
+
+//! [96]
+qApp->setAttribute(Qt::AA_UseStyleSheetPropagationInWidgetStyles, true);
+//! [97]