Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2787

QWaylandApplication not exposed

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: P4: Low P4: Low
    • 6.10.0
    • 6.x, 6.7, 6.9, 6.7.1, 6.8.0, 6.8.1, 6.8.0.2
    • PySide
    • None
    • Linux/Wayland
    • 1b6ff56e2 (dev), b7577f699 (dev)

      I'm trying to get the QNativeInterface when using wayland so I can get access to the "display" variable:
      https://doc.qt.io/qt-6/qnativeinterface-qwaylandapplication.html#display

      Without qt6-wayland installed

      import sys
      from PySide6.QtWidgets import QApplication
      app = QApplication(sys.argv)
      qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
      app.nativeInterface()
      <PySide6.QtGui.QNativeInterface.QX11Application at 0x78cb1982c700>
      

      But with qt6-wayland installed:

      import sys
      from PySide6.QtWidgets import QApplication
      app = QApplication(sys.argv)
      app.nativeInterface()
      <---- None is returned ---->
      

      Could the shiboken generators be updated to expose this Native interface?

        1. pyside2787.py
          2 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            mark.harfouche Mark Harfouche
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes