Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.0
-
None
-
-
28138aa80a14279a72af2818f5bbbaa670283964 (qt/qtbase/dev) 3ae56570bf6272709a96c8740ff22eca2d8f83e9 (qt/qtbase/6.2) 4098a840d74d4a134bc6a7c71f12607d27308fa2 (qt/tqtc-qtbase/5.15)
Description
If the window containing the QVideoWidget is minimized and then restored then the image is no longer observed but the sound is heard.
#include <QApplication> #include <QAudioOutput> #include <QMediaPlayer> #include <QTimer> #include <QVideoWidget> int main(int argc, char *argv[]) { QApplication a(argc, argv); QVideoWidget w; w.resize(640, 480); w.show(); QMediaPlayer player; QAudioOutput audioOutput; player.setAudioOutput(&audioOutput); player.setVideoOutput(&w); player.setSource(QUrl("http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4")); player.play(); QTimer::singleShot(3000, &w, &QVideoWidget::showMinimized); QTimer::singleShot(6000, &w, &QVideoWidget::showNormal); return a.exec(); }
Attachments
For Gerrit Dashboard: QTBUG-97257 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
379315,3 | Fix show()/hide() for child windows on xcb | dev | qt/qtbase | Status: MERGED | +2 | 0 |
379404,2 | Fix show()/hide() for child windows on xcb | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
379406,2 | Fix show()/hide() for child windows on xcb | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |