summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarim Pinter <ext-karim.1.pinter@nokia.com>2010-11-26 08:38:45 (GMT)
committerKarim Pinter <ext-karim.1.pinter@nokia.com>2010-11-26 08:38:45 (GMT)
commit0b728313dbca3ca6ea54bb8f533dbe70028f96e0 (patch)
tree709220afbb1ef068c90fbdf0cbe494dad93c3428
parent2c0c3a213d44ad53023a507e19d18d1e5d359aec (diff)
downloadQt-0b728313dbca3ca6ea54bb8f533dbe70028f96e0.zip
Qt-0b728313dbca3ca6ea54bb8f533dbe70028f96e0.tar.gz
Qt-0b728313dbca3ca6ea54bb8f533dbe70028f96e0.tar.bz2
Adding warning to QMenu documentation
If the QMenu is made visible using show() it causes problems because the scrolling and layout is not set properly. The warning suggests to use exec() or popup() instead. Task-number: QTBUG-12119
-rw-r--r--src/gui/widgets/qmenu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/qmenu.cpp b/src/gui/widgets/qmenu.cpp
index 4bea6de..551e19e 100644
--- a/src/gui/widgets/qmenu.cpp
+++ b/src/gui/widgets/qmenu.cpp
@@ -1319,6 +1319,9 @@ void QMenu::initStyleOption(QStyleOptionMenuItem *option, const QAction *action)
Conversely, actions can be added to widgets with the addAction(),
addActions() and insertAction() functions.
+
+ \warning To make QMenu visible on the screen, exec() or popup() should be
+ used instead of show().
\section1 QMenu on Qt for Windows CE