Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QGraphicsView stops video when it doesn't appears in the screen



  • Hello!!

    I am playing a video in a QGraphicsView with a QMediaPlayer and QGraphicsVideoItem. I have a button that shows and hides the QGraphicsView. When I play the videoItem the QGraphicsView is hidden. When I push that button and show the QGraphicsView, the video is not playing.

    How can I fix it? I don't know why is happening that.

    Thank you very much!



  • @ivanicy

    You'll need to show the relevant parts of your code, otherwise one can only guess what's going wrong.

    How do you hide the QGraphicsView? Do you even disable it?


Log in to reply