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

QWaylandApplication not exposed

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.x, 6.7, 6.7.1
    • PySide
    • None
    • Linux/Wayland

    Description

      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?

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            mark.harfouche Mark Harfouche
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes