Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.0 Beta1
-
None
-
Qt 5.3 beta, OS X 10.9.2, Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Description
On a Macintosh it is usual to have the menu bar available while a modal dialog is displayed so that you can use, for instance, the Edit menu to copy and paste in edit boxes. Qt disables the menu bar when a modal dialog is up.
I found that with Qt 4.8.5 I can create a new QMenuBar in the dialog's constructor and it will be available while the dialog is up. That's good.
In Qt 5.3 (at least, I haven't tried earlier versions) the QMenuBar I create in the dialog's constructor is disabled just like the main menu bar. That's not good.
I attach a modification of the Qt Example "application" to show this regression. The Help menu now has an item "Put up my dialog". The dialog has its own menu bar that has only an Edit menu; if you build the application with 4.8.5, the menu bar and Edit menu are functional, and will cut, copy and paste in the QLineEdit in the dialog. If you build the application with Qt 5.3, my private Edit menu is not enabled.
I wasn't sure what to choose for Component...