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

When being minimized, child window is not moved to expected position

XMLWordPrintable

    • Windows

      Reproducer attached. There is a QMainWindow acting as top-level window. And a QWidget parented to QMainWindow acts as child window. QWidget is assigned a QHBoxLayout in which a QLabel is showing a string.

      The issue is that QWidget is not minimized to expected position. Although being at lower-left corner above Windows Taskbar, the minimized QWidget is offset upward by certain amount. And 2 changes can make QWidget be minimized to expected position, i.e. right above Windows Taskbar with no gap:
      1. Do not use layout inside
      2. Do not setWordWrap(true); for embedded QLabel (this is quite weird)

      A screenshot is also uploaded to illustrate the idea of "offset upward by certain amount". See that there is a gap between minimized QWidget and Windows Taskbar. With either 1 or 2 described above that gap is gone.

        1. minimize_issue.png
          minimize_issue.png
          42 kB
        2. minimize_issue.zip
          1.0 kB
        3. QTBUG-123053.tgz
          4 kB
        4. qtbug123053.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            axelspoerl Axel Spoerl
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes