Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QVideoWidget does not repaint
Harry123 last edited by
I am using a QVideoWidget with QMediaPlayer, both are parented to a top-level QWidget.
The problems I am encountering are :
- Loading a video into QMediaPlayer does not display the first frame.
- While the video is displayed when doing play() + pause() or setPosition(), it disappears again immediately when :
a. changing the focus
b. doing QVideoWidget::hide() and then show()
I have tried when a paint-event arrives to use QVideoWidget::update(), but this only causes an infinite loop of refreshes. Using QVideoWidget::repaint() during the paint-event sometimes works and sometimes randomly crashes.
Does anyone know how to reliably make QVideoWidget display its last frame and keep on displaying it?