diff options
author | Karim Pinter <ext-karim.1.pinter@nokia.com> | 2010-11-26 08:38:45 (GMT) |
---|---|---|
committer | Karim Pinter <ext-karim.1.pinter@nokia.com> | 2010-11-26 08:38:45 (GMT) |
commit | 0b728313dbca3ca6ea54bb8f533dbe70028f96e0 (patch) | |
tree | 709220afbb1ef068c90fbdf0cbe494dad93c3428 /src | |
parent | 2c0c3a213d44ad53023a507e19d18d1e5d359aec (diff) | |
download | Qt-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
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/qmenu.cpp | 3 |
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 |