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

QStackedLayout/StackAll: Z-order changes when gaining focus from opened QComboBox by clicking through a mask of the widget in front

    XMLWordPrintable

Details

    • 843247e1c509ec3ce55a2e2051b83fcfa6634135

    Description

      QStackedLayout Z-order changes when the backmost element is focused while QComboBox is open in a dialog.

      Steps to reproduce:

      • Create a stacked layout with StackAll, have a widget with a mask in front.
      • Open a nonmodal dialog which contains a QComboBox
      • Open the QComboBox
      • Click (through mask) on the backmost element in main window's stacked layout

      Expected result:

      • Main window gets focus, stacked layout z-order does not change

      Observed result:

      • The clicked backmost element pops on top, hiding the other elements in stackedlayout

      In the sample program clicking the black box opens a popup, after which you need to open the combobox. While combobox is opened, click the red background to observe the problem.

      Attachments

        1. qtbug52670_z_stack.txt
          12 kB
        2. qtbug52670.zip
          2 kB
        3. StackedLayoutZOrder.zip
          2 kB
        For Gerrit Dashboard: QTBUG-52670
        # Subject Branch Project Status CR V

        Activity

          People

            andysh Andy Shaw
            jussi_witick Jussi Witick
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes