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

Frameless maximized widget doesn't cover the screen correctly

    XMLWordPrintable

Details

    Description

      Launch application and show frameless widget maximized in the secondary screen (not primary/main screen). Expection is that widget covers the whole screen. But looks like it uses primary screen available geometry and doesn't cover the screen correctly.

      For example debugging widget resize event outputs following information (two events triggered on startup):

      void __thiscall Widget::resizeEvent(class QResizeEvent *)
      screen  0  geometry:  QRect(0,0 1600x1200)
      screen  1  geometry:  QRect(1600,48 2048x1152)
      widget geometry:  QRect(0,0 400x300)
      available geometry:  QRect(0,0 1600x1160)
      
      void __thiscall Widget::resizeEvent(class QResizeEvent *)
      screen  0  geometry:  QRect(0,0 1600x1200)
      screen  1  geometry:  QRect(1600,48 2048x1152)
      widget geometry:  QRect(1600,48 1600x1160)
      available geometry:  QRect(1600,48 2048x1152)
      

      So looks like the second available geometry is correct but it's not set to the widget at all.

      Testable by attached sample application.

      Attachments

        1. QTBUG-46311.zip
          2 kB
        2. screenshot.png
          screenshot.png
          46 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              qtcomsupport Qt Support
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes