Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. what widget is used for video overlay drawing?
Qt 6.11 is out! See what's new in the release blog

what widget is used for video overlay drawing?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • davecotterD Offline
    davecotterD Offline
    davecotter
    wrote on last edited by
    #1

    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?

    raven-worxR 1 Reply Last reply
    0
    • davecotterD davecotter

      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?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @davecotter
      just stack any QGraphicsItem above your QGraphicsVideoItem? Or did you encounter any issues with that approach?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved