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

QWidget geometry() method is reporting null position for Wayland Linux apps.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 6.9.0
    • QPA: Wayland
    • None
    • Linux/Wayland

    Description

      The QWidget's geometry() method is reporting null position for Wayland Linux apps: both width and height are correct, but x and y are always returned as 0.

       

      The QWidget's moveEvent() method is also failing to fire as expected - perhaps these two issues are related.

       

      Issue tested under Ubuntu 24.04 (Standard Gnome Distro), with open source C++ Qt Widgets (6.9).

       

      As everything appears to work correctly under X11, the current work around is to force xcb at runtime (-platform xcb).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            taliadon Lee Westlake
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes