what widget is used for video overlay drawing?
-
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?
-
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?
@davecotter
just stack any QGraphicsItem above your QGraphicsVideoItem? Or did you encounter any issues with that approach?