Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.4, 4.8.0, 5.6.2, 5.9.0 Beta 1
-
None
-
Reproduced on Linux x86_64 (openSUSE 11.4) and Windows 7 x64, using Qt 4.8.0 and 4.7.4.
Description
When a tear-off-enabled menu crosses multiple columns and the tear-off handle is activated, the independent window that's created goes haywire and gets resized until it reaches the absolute limits. Qt even spits out this message several times:
QWidget::setMinimumSize: (/QTornOffMenu) The largest allowed size is (16777215,16777215)
Which indicates it's doing something completely weird here.
Simple example code that should always trigger the bug is attached, derived from the official Qt 4.8.0 example 'menus', extended with a long (multi-column) tear-off menu. If your Y-resolution is so big / font size so small that the menu is displayed in one column you'd have to put more items in the menu (edit mainwindow.cpp, line 360).