Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML BusyIndicator how to overlay the current window
Forum Updated to NodeBB v4.3 + New Features

QML BusyIndicator how to overlay the current window

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 503 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.
  • AmrCoderA Offline
    AmrCoderA Offline
    AmrCoder
    wrote on last edited by AmrCoder
    #1

    Hi,

    Iam using QML Busyindicator when a user login or loading a data in a page or something like this, I want to be able to make the busyindicator overlay over the current window and make the window not editable, something similar to the messagebox when it shows up and disables all the Window, so I can't change or press anything until I press ok or close this dialog, something like the ProgressDialog in Android.

    this is my code and what I try to do

        Popup {
            id: waitpop
            width: 100
            height: 100
            BusyIndicator {
                id: login_progress
                running: true
                anchors.fill: parent
            }
            anchors.centerIn: Overlay.overlay
            closePolicy: Popup.NoAutoClose
        }
    

    this code shows the busy indicator but the user still can interact with the button and text field and everything, so how to disable what is under the busy indicator and not let the user close it by tapping away.

    Thanks in advance.

    B 1 Reply Last reply
    0
    • AmrCoderA AmrCoder

      Hi,

      Iam using QML Busyindicator when a user login or loading a data in a page or something like this, I want to be able to make the busyindicator overlay over the current window and make the window not editable, something similar to the messagebox when it shows up and disables all the Window, so I can't change or press anything until I press ok or close this dialog, something like the ProgressDialog in Android.

      this is my code and what I try to do

          Popup {
              id: waitpop
              width: 100
              height: 100
              BusyIndicator {
                  id: login_progress
                  running: true
                  anchors.fill: parent
              }
              anchors.centerIn: Overlay.overlay
              closePolicy: Popup.NoAutoClose
          }
      

      this code shows the busy indicator but the user still can interact with the button and text field and everything, so how to disable what is under the busy indicator and not let the user close it by tapping away.

      Thanks in advance.

      B Offline
      B Offline
      Bob64
      wrote on last edited by
      #2

      @AmrCoder would it be sufficient to set modal true on your popup?

      1 Reply Last reply
      1

      • Login

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