Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
4.8.5, 5.2.1
-
None
-
OS: Windows 7 x64 SP1
Qt: 5.2.1
-
e38ad9455099a83e2a8619f19ca949bc64ae6f82 (stable, 10.4.2014), Qt 4: 68a911862e05400ced87971c43fb27fb5d5d8ebd (4.8, 10.4.2014, 4.8.7)
Description
1. Create QMainWindow with QToolbar only inside. Menu bar may be added too, it does not matter.
2. Drag the toolbar out of the window.
3. Resize the window to minimal possible size, so client area is not visible.
4. Drag the toolbar back to the window.
5. Normally, a toolbar moves back to client area, but in this case an application crashes.
Expected behaviour is resizing client area to approciate size for fitting a toolbar.
Stack trace:
0: abort
1: qt_message_fatal
2: QMessageLogger::fatal
3: qt_assert
4: QToolBarAreaLayout::item
5: QToolBarAreaLayout::plug
6: QMainWindowLayoutState::plug
7: QMainWindowLayout::plug
8: QToolBarPrivate::endDrag
9: QToolBarPrivate::mouseReleaseEvent
10: QToolBar::event
...
Attachments
Issue Links
- relates to
-
QTBUG-9310 QMainWindow doesn't expand after moving a toolbar from the top, dragging it down and then dragging it back to the top
-
- Closed
-
For Gerrit Dashboard: QTBUG-37183 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
82127,1 | Fix crash when trying to place toolbar into zero-height window. | stable | qt/qtbase | Status: MERGED | +2 | 0 |
83169,1 | Fix crash when trying to place toolbar into zero-height window. | 4.8 | qt/qt | Status: MERGED | +2 | 0 |