It looks like I will have to compile the qml plugin from source using meson without cerbero, as I need debug mode.
Maybe a good alternative would be using glimagesink and setting it to win id, which you can get from Qt.
Set Win ID:
gst_video_overlay_set_window_handle(GST_VIDEO_OVERLAY(sink), xwinid);
Get Win ID:
auto winId = videoWidgetContainer->videoWidget->winId();
Just for additional information my videoWidget is of class QWidget.
This works fine for me without any problems, might be worth a try.
Then file a bug report to Qt.
@Marcel323 I have the same problem like you. But changing debug to release sometimes work sometimes I am getting not installed error. Can you find the source of the problem. What can I make to solve that issue?
I used cerbero and When I inspect I can see the gstqml6 plugin.
TEMPLATE = app
QT += qml quick widgets
QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig release
PKGCONFIG =
gstreamer-1.0
gstreamer-video-1.0DEFINES += GST_USE_UNSTABLE_API
INCLUDEPATH += …/lib
SOURCES += main.cpp
RESOURCES += qmlsink.qrc
Additional import path used to resolve QML modules in Qt Creator’s code model
QML_IMPORT_PATH = C:\gstreamer\1.0\msvc_x86_64\lib\gstreamer-1.0