Painting over video in Qt widget

I am developing a Qt application that can play videos and shows scrolling along the way. Window size MUST NOT exceed the limit of 720 pixels in height and 1280 in width. I use MPlayer as a subordinate process and pass winId () QWidget to it, and it displays the video in it. Now I want another widget on top of this video widget to show some results all the time, but placing a shortcut widget on top of the widget containing the video does not serve the purpose, as it becomes a multiple-drawn video. Any workaround? Suggestions for this?

+3
source share
3 answers

When using MPlayer in this way, I think the best option would be to create a second window.

Here are some ways you could take from here: a method that may not work on some versions / configurations of Xorg is to have the second window be the same size as the first and place it directly on top of the other (<with mechanism move another window when moving) and make the window transparent, except for your controls (transparency is a problem with some versions of X, check out some examples of this example at labs.trolltech.com).

, , , VLC , , ... , , .

+1

Phonon . , , , .

0

, QImage , QPixmap, paintEvent().

, , "", - , QGraphicsView .

, .

0
source

Source: https://habr.com/ru/post/1712199/


All Articles