aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/glue/qtgui.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-08-01 08:16:19 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-08-12 12:48:57 +0200
commitb7577f699a45da2564f9b9df37fad7ff60805bd9 (patch)
treea1967a8c762e59478ff3e9ee83d776eeeb9bcad6 /sources/pyside6/PySide6/glue/qtgui.cpp
parent377c45812770d6c991774e01b494cb61bd307260 (diff)
Expose QNativeInterface::QWaylandApplication
[ChangeLog][PySide6] Bindings for QNativeInterface.QWaylandApplication have been added. Initial-patch-by: Mark Harfouche <mark.harfouche@gmail.com> Fixes: PYSIDE-2787 Change-Id: I3484fbd37cb4cd0ae70fde770eb9195a78f4b061 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/glue/qtgui.cpp')
-rw-r--r--sources/pyside6/PySide6/glue/qtgui.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/sources/pyside6/PySide6/glue/qtgui.cpp b/sources/pyside6/PySide6/glue/qtgui.cpp
index b394c4ad0..71b102d3b 100644
--- a/sources/pyside6/PySide6/glue/qtgui.cpp
+++ b/sources/pyside6/PySide6/glue/qtgui.cpp
@@ -907,7 +907,13 @@ if (auto *x11App = %CPPSELF.nativeInterface<QNativeInterface::QX11Application>()
hasNativeApp = true;
%PYARG_0 = %CONVERTTOPYTHON[QNativeInterface::QX11Application*](x11App);
}
-#endif
+#endif // xcb
+#if QT_CONFIG(wayland)
+if (auto *waylandApp = %CPPSELF.nativeInterface<QNativeInterface::QWaylandApplication>()) {
+ hasNativeApp = true;
+ %PYARG_0 = %CONVERTTOPYTHON[QNativeInterface::QWaylandApplication*](waylandApp);
+}
+#endif // wayland
if (!hasNativeApp) {
Py_INCREF(Py_None);
%PYARG_0 = Py_None;