Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Black screen shown when QWidget containing image is maximized from minimized state in QStackedLayout
Forum Updated to NodeBB v4.3 + New Features

Black screen shown when QWidget containing image is maximized from minimized state in QStackedLayout

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 245 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sikander Rafiq
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which version of Qt ?
      On which OS ?
      Do you have the same issue if the other widget is not a QVideoWidget ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sikander Rafiq
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved