Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-98654

QX11Application: No such file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.3, 6.3.0 Alpha
    • 6.2.1
    • Extras: X11
    • 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);
      

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            milahu milan hauth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes