Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
4.8.1, 5.0.0, 5.8.0
-
The bug occurs with Linux (ArchLinux with kernel 3.0.25) and with Windows (Windows 7 64).
Description
When creating a QMenuBar with QActions in it (without QMenu), the QMenuBar::triggered(QAction*) signal can get fired twice, depending on the QAction.
See also another (closed) related issue QTBUG-6741
Test code is provided. Clicking on the first QAction prints "Triggered" once, clicking on the second one prints "Triggered" twice.
Attachments
For Gerrit Dashboard: QTBUG-25669 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
62405,1 | Subject: Fix QMenuBar::triggered is fired twice | stable | qt/qtbase | Status: ABANDONED | -1 | 0 |
215232,12 | QMenuBar: Fix repetitive emission of triggered() when using addAction(QString) | dev | qt/qtbase | Status: MERGED | +2 | 0 |