summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qproxystyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/styles/qproxystyle.cpp')
-rw-r--r--src/widgets/styles/qproxystyle.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/widgets/styles/qproxystyle.cpp b/src/widgets/styles/qproxystyle.cpp
index ecad637957..31fe587ce2 100644
--- a/src/widgets/styles/qproxystyle.cpp
+++ b/src/widgets/styles/qproxystyle.cpp
@@ -72,6 +72,13 @@ QT_BEGIN_NAMESPACE
or system controlled styles. It would not work on a Mac, for
example, where menus are handled by the operating system.
+ When a proxy style should be set on a specific widget only, you have
+ to make sure to not set the proxy on the global application style which
+ is returned by QWidget::style(). You have to create a separate custom style
+ for the widget similar to:
+
+ \snippet code/src_gui_qproxystyle.cpp 2
+
\sa QStyle
*/