Black screen shown when QWidget containing image is maximized from minimized state in QStackedLayout
-
Hi,
I have created imageviewer derived from QWidget in which used QLabel to show image which is shown fine.I have added imageviewer and QVideoWidget in QStackedLayout as based on image or video, I am switching QStackedLayout::setCurrentIndex inside slot of QMediaPlaylist::currentIndexChanged signal.
When Imageviewer is active and user minimize it and then maximized. Imageviewer is shown for just one second or less and then black screen is shown.
Its working perfectly fine when QVideoWidget is active and video is playing.
Any thoughts why black screen is shown in case of ImageViewer.
Thanks in advance for your response.
-
Hi,
Which version of Qt ?
On which OS ?
Do you have the same issue if the other widget is not a QVideoWidget ? -
Hi,
I am using QT6.8 on Windows 10.
This issue is occurring with QWidget derived class (my ImageView). This issue is not seen when QVideoWidget is active and user minimize the app and then maximized. -
That was not my question. Do you have the same issue if you do not have have a QVideoWidget in the stack ?
You should also share the implementation of ImageView.