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

Wayland: cannot resize a window to its minimum height

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.8.3
    • QPA: Wayland
    • None
    • Arch Linux:
      linux 6.13.8.arch1-1
      gcc 14.2.1+r753+g1cd744a6828f-1
      qt6-base 6.8.3-1
      plasma-desktop 6.3.3-1
      wayland 1.23.1-1
    • Linux/Wayland

    Description

      I cannot resize a window to its reported minimum height on Wayland, but I can do that on X11 (using the xcb plugin). I observe this bug with QMainWindow with a single QLabel or QPushButton set as its central widget (see the attachment).

      Expected: When I drag the mouse to reduce the window size, the window allows me to do that until its minimum size (height) is reached.

      Observed: When I drag the mouse to reduce the window size, the actual minimum size that I can resize to is greater that its reported minimum size (value of property minimumSize).

      Steps to reproduce:

      1. Compile attached main.cc (using CMakeLists.txt).
      2. If you run with QT_QPA_PLATFORM=xcb, you can resize the window to its reported minimum height.
      3. if you run with QT_QPA_PLATFORM=wayland, you cannot resize it to the reported minimum height.

      Attachments

        1. CMakeLists.txt
          0.2 kB
        2. main.cc
          0.6 kB
        3. qtbug recording2.mkv
          2.17 MB
        4. qtdiag6.txt
          11 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            ytret Yuri Tretyakov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes