Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-129791

Issue with Showmaximized function in case of QMainWindow with Qt::FramelessWindowHint flag

XMLWordPrintable

    • Windows
    • 90be6609b (dev), 2c1a23f3c (6.8), f7da1103e (tqtc/lts-6.5)

      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.

        1. Demo_Example.zip
          1.11 MB
        2. Qt_maximize_issue.mp4
          12.84 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            owolff Oliver Wolff
            vikas.ganesh vikas.ganesh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes