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

Embed other Applications inside QtQuick

    XMLWordPrintable

Details

    • User Story
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.4.1
    • Quick: Widget
    • None
    • Linux/X11, Windows

    Description

      Hey,

      Currently there is no support to embed other applications into a QtQuick application.

      It is possible using QtWidgets. One can make a window 'native', access that widgets winId and pass it to another library.
      This is handy for creating a UI around a video player.

      I was tinkering around the past couple days on a hobby project and found a partial solution to this problem. Obviously, this can only work on platforms that support it (e.g. Windows, Linux/X11).

      I created a minimal working example: https://github.com/trin94/embed-other-applications-inside-qtquick

      I now have the problem that the video (or the widget if I omit the player initialization) does not let QtQuick draw over it anymore. In QtWidgets this was working: https://github.com/trin94/embed-other-applications-inside-qtquick/blob/main/qt_widget.py

      I was also tinkering with widget attributes like

      self.setWindowFlags(Qt.FramelessWindowHint)
      self.setAttribute(Qt.WA_TranslucentBackground)
      

      but the 'embedded' widget does not let QtQuick draw over it.

      Is there something I am missing? Will there be an official way of embedding alien windows into QtQuick?

      Best regards

      Attachments

        1. video.png
          video.png
          193 kB
        2. video-menu-hidden.png
          video-menu-hidden.png
          632 kB

        Activity

          People

            tvete Paul Olav Tvete
            trin94 Elias Müller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: