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

QQC2 BusyIndicator does not inherit visibility from parent consistently

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.4, 6.5
    • Quick: Controls 2
    • None
    • Linux/X11, macOS, Windows
    • 321110041 (dev), 8f2aa4de8 (6.7), 147ecd467 (6.6), 5a7fb4296 (tqtc/lts-6.5)

    Description

      When a BusyIndicator is parented to an Item that is initially not visible, it cannot be made visible.

      import QtQuick
      import QtQuick.Controls
      
      Window
      {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
      
          Rectangle
          {
              id: rectangle
              visible: checkbox.checked
              color: "lightblue"
              anchors.fill: parent
      
              BusyIndicator { anchors.centerIn: parent }
          }
      
          CheckBox
          {
              id: checkbox
              //checked: true // Works as expected if this is set
          }
      }
      

      Actual:

      Expected:

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            timangus Tim Angus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes