Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Hide video in Qmediaplayer
How to hide video in Qmediaplayer and just play the audio
AFAIK, QMediaPlayer doesn't have any GUI, you would have to set in on a QVideoWidget to get the video on screen.
ya i used Qvideowidget now i want that to hide the video for some time and meanwhile only audio will play for some time and after that again the video should appear on screen if it can be done with push button it will be great
andreyc last edited by
What if you will use QVideoWidget::hide() and QVideoWidget::show().
ya but i need to hide the screen while it playing the video
when i use QVideoWidget::hide() it hides the QVideoWidget after i stop the video and play it again it then it hides QVideoWidget.
I want when i am playing the a video the QVideoWidget hides or goes black so that i cant see the video but audio show play.
Can you show how you are doing it currently ?
its very big code i cant post it here
can u suggest me ideas plz