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

Maximized frameless window on Windows moved to left

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.1
    • GUI: Window management
    • None
    • Windows

    Description

      Hello

      On Windows with a vertical taskbar, when creating a simple QML window which is shown maximized with the frameless flag set, the window is moved behind the taskbar with a gap at the other screen edge, When removing the frameless flag everything works as it should. I attached a sample code illustrating the problem.

      Here's the basic QML file:

       

      import QtQuick
      
      Window {
      
          // comment the following line to have everything working as expected but with window frame
          flags: Qt.FramelessWindowHint|Qt.Window
      
          visible: true
      
          Component.onCompleted: {
              showMaximized()
          }
      
      }

      And here are two screenshots, the first one shows the behavior with the window frame shown and everything works just fine:

      And when the frameless flag is set, this is the result (notice the gap at the right side of the screenshot where you can see the window behind):

      Is there any workaround that would make it work as expected?

       

      Thanks,

      Lukas

       

      Attachments

        1. frameless.zip
          1 kB
        2. with_frame-1.png
          with_frame-1.png
          19 kB
        3. with_frameless.png
          with_frameless.png
          13 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            owolff Oliver Wolff
            luspi Lukas Spies
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes