Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-76435

[Reg: 5.9.7-> 5.13.0] Show events not propagated to children of QMainWindow when it contains a QScrollArea with a QQuickView inside a window container

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11, Windows

      Description

      When a QMainWindow contains a QScrollArea which itself contains a QQuickView inside a window container (QWidget::createWindowContainer), then after closing it for the first time, subsequent show calls will only show the window, but none of the children.

      It seems the reason is that no show events are sent to the children of QMainWindow.
      Interestingly, it really seems to be the combination of scroll area and window container that causes the problem - when embedding the window container directly within the main window or when using a QQuickWidget instead of the QQuickView + window container everything works fine.

      To reproduce it, start the attached sample, then press the "Open popup", close the popup windows and press the "Open popup" button again. You'll notice that when opening the window for the first time, the green QML Rectangle is shown inside the scroll area, while the second time around no widgets - not even the status bar - are shown

        Attachments

        1. main.cpp
          0.5 kB
        2. qtbug76435.zip
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              shmittal Shveta Mittal
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes