Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Video overlay with Qt 4.8
PierreO last edited by
I'm trying to create an overlay on a video, but I find no way to make it work.
I receive a video from a camera, gstreamer handles it with a pipeline. At the end of the pipeline I use the plugin ximagesink.
On my Qt application, I use
gst-video-overlay-set-window-handlefrom the plugin videooverlay and give it the
My video appears on my application, all is fine.
I use Qt4.8.6 on a embedded platform.
I try to create an overlay (draw a simple line for example) on this video.
Here are all my attempts:
- Subclass a
QWidget, with TranslucentBackground, also with PaintOnScreen attributes, redefining the
paintEventfunction, the line was drawn, but the area of the widget "freeze" the video
- The same as below, but with redefining the
- Add a scene to the
QGrahicsView, and use the function
addLine, the line was drawn but disappear under the next frame.
- I do some tests with a QWidget, by setting its stylesheet with alpha channel.
I think transparency is not managed with my version of x11, maybe I have not a composition manager (I don't know how to know it).
If you have any idea about this problem,
- Subclass a