-
Suggestion
-
Resolution: Fixed
-
P4: Low
-
6.x, 6.7, 6.9, 6.7.1, 6.8.0, 6.8.1, 6.8.0.2
-
None
-
-
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?
For Gerrit Dashboard: PYSIDE-2787 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
665101,1 | WIP: Fake a wayland application | dev | pyside/pyside-setup | Status: ABANDONED | -2 | 0 |
665114,8 | Move native interfaces out of the QtGui type system file | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
665205,7 | Expose QNativeInterface::QWaylandApplication | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |