Details
-
Bug
-
Resolution: Moved
-
P2: Important
-
6.5.4
-
-
90be6609b (dev), 2c1a23f3c (6.8), f7da1103e (tqtc/lts-6.5)
Description
Hi Team,
We at Siemens have issues with QMainWindow showmaximize function.
Maximize option for the QMainWindow is not considering the correct screen geometry when Qt::FramelessWindowHint is set, maximized window size is bigger than the availableGeometry()
The problem arises when using the Qt::FramelessWindowHint window flag while customizing the QMainWindow . This customization creates a custom title bar with maximize, minimize, and close buttons on the frameless window. These buttons are connected to Qt slots and ultimately call the showMaximized() function of QWidget.
In a normal application (with the default window flags), calling showMaximized() works fine. However, in our case, using Qt::FramelessWindowHint causes showMaximized() to not function properly.
Refer the attached video(Qt_maximize_issue.mp4) for the detailed explanation of the issue and also the demo applications to reproduce the issue.
Attachments
Issue Links
- is replaced by
-
QTBUG-130865 [Windows] QWidget::showMaximized() does not follow SPI_SETWORKAREA correctly when Qt::FramelessWindowHint is set
-
- Closed
-
For Gerrit Dashboard: QTBUG-129791 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
602450,8 | Windows QPA: Make frameless window respect WORKAREA | dev | qt/qtbase | Status: MERGED | +2 | 0 |
602881,2 | Windows QPA: Make frameless window respect WORKAREA | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
602960,2 | Windows QPA: Make frameless window respect WORKAREA | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |