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

[Windows]: When toggling the FramelessWindowHint flag on and then off again on a window then it will end up being too small for the contents

    XMLWordPrintable

Details

    • b8f89d8ef3f695746a8a48084d8ea710eb508d3d (qtbase/5.6, 23.2.2016, 5.6.1)

    Description

      [Windows]: When toggling the FramelessWindowHint flag off and then on again on a window then it will end up being too small for the contents. What happens is that the window itself once it has been toggled back on again cuts off the contents of the widget as it believes them to be smaller than reality, unfortunately resizing the window doesn't help as that will also resize the contents to be bigger at the same time so it will always be cut off. Switching to another type such as Qt::Dialog and then back to Qt::Window helps to restore it.

      This can be reproduced with the windowsflags example, just select Qt::FramelessWindowHint and then remove it, now you can see that the pushbutton is completely cut off.

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              andysh Andy Shaw
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes