Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Stacked Popups, dimming and close popup handling
Qt 6.12 LTS is out! See what's new in the release blog

Stacked Popups, dimming and close popup handling

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 1.1k Views 1 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.
  • M Offline
    M Offline
    Michael_3010
    wrote on last edited by
    #1

    Hey folks,

    I'm using Quick Components 2.2 to create a user interface.
    Within that I opened a Dialog to show some information. Using an ApplicationWindow the dimming of the background works like charm.
    But when I open a Popup from within the dialog, the dialog is not dimmed. Furthermore, when I click outside the popup (and the dialog) both items are closed.

    What I want to achieve is:

    • when the popup is shown, the dialog should be dimmed (and all other popups below the current one)
    • when I click outside the popup (and the dialog), only the (topmost) popup should be closed

    Is this behavior achievable using Quick Controls or do I have to implement it on my own?
    And if I have to do it myself, can you give me a sketch of the best solution?

    Cheers

    Michael

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Is the Popup modal?

      M 1 Reply Last reply
      1
      • ? A Former User

        Is the Popup modal?

        M Offline
        M Offline
        Michael_3010
        wrote on last edited by
        #3

        @jpnurmi

        Ouch; that does the trick.

        Thank you so much

        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
        • Unsolved