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

Popup can leave behind it's dimmer Rectangle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.10.1
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      I have a scenario where I am using a StackView and sometimes when I am about to pop the StackView, I check if there is any unsaved state on the page that is currently showing. If there is I dynamically create a Popup, parenting it to the current page in the StackView, and if the users wishes they can discard any unsaved changes and proceed with the pop. Doing this will result in the Popup's dimmer rectangle to be left attached to Overlay with it's opacity set to 0.0.

      I need to set the Popup's Z index to be a certain value due to having a use case where certain Popup's may need to be guaranteed to be in a certain order. By doing this it causes this dimmer Rectangle to linger and block input of future Popups due to it getting the Popup's z value. This is easily observable due to clicks not working on future Popups, but also the mouse cursor stays as just the arrow pointer even when say hovering over a TextField indicating something else is still there.

       

      I've attached a sample project and also two pictures from GammaRay showing the Rectangle that is left.

      To reproduce:

      1. Click the "POPUP" button
      2. Observe you can type text into the text field and see the cursor mouse pointer
      3. Tap outside the popup to close it
      4. Click the "PUSH" button
      5. Click the "POP" button
      6. Click the "OK" button on the popup
      7. Click the "POPUP" button again
      8. Observe the mouse pointer is now not a cursor but instead the normal arrow due to the dimmer rectangle still being over the screen, but with an opacity of 0.

       

        Attachments

        1. bug-state.jpg
          bug-state.jpg
          64 kB
        2. initial.jpg
          initial.jpg
          61 kB
        3. PopupIssue.zip
          6 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:
            connor Connor Flaat
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes