Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.1
-
None
-
b89608dcf89ccafa009e2bab480f8fe8c3ee557a (qt/qtbase/dev) f31de247dc3f17e20134f77d36ba0cce61328f53 (qt/qtbase/6.2)
Description
https://doc.qt.io/qt-6/qnativeinterface-qx11application.html
docs say
#include <QX11Application> // no such file
but QX11Application is provided as QNativeInterface::QX11Application by
#include <QGuiApplication>
sample code from https://github.com/luebking/qarma/issues/41
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) #include <QGuiApplication> // QNativeInterface #else #include <QX11Info> #endif // ... Display *dpy; #if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) dpy = QGuiApplication::nativeInterface<QNativeInterface::QX11Application>()->display(); #else dpy = QX11Info::display(); #endif XSetTransientForHint(dpy, m_dialog->winId(), m_parentWindow);