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

Window X position increases every time visible is set to true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.8.0 RC
    • 6.6.1
    • None
    • NixOS (Linux) 24.05 (nixpkgs commit 40c3c94c241286dd2243ea34d3aef8a488f9e4d0)
      Wayland (Hyprland and Sway compositors)
    • Linux/Wayland

      Under wayland, `Window` components slowly increase their X position when setting visible between true and false. I have set the Qt.ToolTip flag to get a positionable popup window and every time visible is set to true, X increases by 1. The Y position is not affected. See Bug.qml and Bug.mp4 for an example.

      Note that setting the X position before setting the window to visible works as a band-aid fix, and you must also adjust for the 1px offset. See BugBadFix.qml and BugBadFix.mp4.

       

      This has been tested under the Hyprland and Sway wayland compositors. It does not happen when running with `QT_QPA_PLATFORM=xcb`.

        1. Bug.qml
          0.5 kB
          user-b4e76
        2. Bug.mp4
          840 kB
          user-b4e76
        3. BugBadFix.qml
          0.6 kB
          user-b4e76
        4. BugBadFix.mp4
          551 kB
          user-b4e76
        5. xpos.log
          103 kB
          user-b4e76
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.graphics.and.multimedia Qt Graphics Team
            jirauser69088 user-b4e76 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes