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

resize() on a maximized QWidget clips painting but window remains maximized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.4.1
    • None
    • Linux x86_64 openSUSE, with an Intel graphics. Happens both with kwin5 and openbox

      To reproduce

      1. Create a QWidget
      2. Maximize it
      3. call resize() with a size smaller than the maximized size (e.g. 400x400)

      Afterwards the widget will only be painted in the new size(400x400) however the window will still be maximized, the extra space around that area displays the content behind the window. New paint events will report a region of 400x400.

      I expected the window to remain maximized and the resize() to have no effect.

      Attached, a minimal example that maximizes a QWidget and then resizes it - prints all paint events. Also a screenshot of the issue.

        1. qtbug.png
          qtbug.png
          132 kB
        2. test-qt-maxresize.cpp
          0.7 kB
        3. test-qt-maxresize-part2.cpp
          0.7 kB
        4. watwat.png
          watwat.png
          73 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            raf Rui Abreu Ferreira
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes