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

Window X position increases every time visible is set to true

    XMLWordPrintable

Details

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

    Description

      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`.

      Attachments

        1. Bug.mp4
          840 kB
        2. Bug.qml
          0.5 kB
        3. BugBadFix.mp4
          551 kB
        4. BugBadFix.qml
          0.6 kB
        5. xpos.log
          103 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
            outfoxxed outfoxxed -
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes