Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
what widget is used for video overlay drawing?
davecotter last edited by
if i want to show a movie, but also show animated graphics on top of it, what "overlay" widget do i use for that? i'm using these things to show the movie:
QMediaPlayer *mediaPlayer = new QMediaPlayer(NULL, QMediaPlayer::VideoSurface); QGraphicsVideoItem *videoItem = new QGraphicsVideoItem(); QGraphicsView *graphicsView = new QGraphicsView(new QGraphicsScene(this));
what do i use to draw graphics over the movie, and retain hardware acceleration? is there a sample project for that?
just stack any QGraphicsItem above your QGraphicsVideoItem? Or did you encounter any issues with that approach?