Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.6.0, 5.6.1, 5.9.1
-
Bug affects: Windows 7 with Qt 5.6.1 and Qt 5.6.0.
Doesn't affect (listing only what I have tested and found to work): XUbuntu 16.04, OSX 10.11
-
Vista Style/docked: 46eb7d6b70416d99fddcb5a3d59c478da6b36bea (qtbase/5.10, 11.10.2017, 510.0) e70230405dce5ac03817fc564a3a8ba5f208422a (qt/qtbase/wip/qt6)
Description
We create QDockWidgets and then use their toggleViewAction to populate a menu. For the menu, we want to include ampersands in the action text for the keyboard shortcuts. So we set the ampersands in the windowTitle of the QDockWidget. On OSX and Linux this works fine and the windowTitle ignores the ampersand when it is drawn onscreen. But on Windows the ampersands show up in the window title.
Might be related to QTBUG-12547 but I couldn't find anything closer in the bug tracker and that was closed years ago.
Attached is a Qt Creator project with the 20 or so lines of code needed to reproduce and some screenshots showing the & in the window title.
Attachments
Issue Links
- replaces
-
QTBUG-12547 Inconsistency of ampersand handling in window title of docked and undocked widgets
- Closed
For Gerrit Dashboard: QTBUG-54485 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
208090,2 | Windows Vista Style: Draw dock widget title with Qt::TextShowMnemonic | 5.10 | qt/qtbase | Status: MERGED | +2 | 0 |
209901,6 | Don't treat the ampersand in a titlebar as a mnemonic | dev | qt/qtbase | Status: MERGED | +2 | 0 |