Details
-
User Story
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.4.1
-
None
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