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

QWindow::fromWinId() window's geometry is QRect(0, 0, 0, 0)

    XMLWordPrintable

Details

    • Linux/X11

    Description

      I'm working on Linux, Ubuntu 20.04 and my window manager is XOrg.
      this code is working on Windows 10 but not on Linux.

      When I run the PySide function's fromWinId and createWindowContainer, I don't manage to embed the Calculator app.

      The window object created by fromWinId has a geometry equal to PySide6.QtCore.QRect(0, 0, 0, 0), whereas on Windows 10, I have right values.

      Attachments

        1. calculator.png
          calculator.png
          8 kB
        2. embedded.py
          1 kB
        3. opening_window.png
          opening_window.png
          7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            liaqi Liang Qi
            claire-c Claire Ceresa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes