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

ProgressBar does not show progress if style has been

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0 Beta1
    • 5.2.1, 5.3.0 Alpha
    • Quick: Controls 1
    • None
    • Windows 7, Linux
    • 241ffae4518159caa812d594c2702ac16e0c8f29

    Description

      Although indeterminate has been set to true, progress will not scroll in progressbar. Without the style ProgressBar shows the progress.

      import QtQuick 2.1
      import QtQuick.Controls 1.0
      import QtQuick.Controls.Styles 1.0
      
      Rectangle {
          width: 300
          height: 400
      
          color: "red"
      
          ProgressBar {
              width: 200
              height: 50
      
              style: ProgressBarStyle {
                  background: Rectangle {
                      radius: 2
                      color: "lightgray"
                      border.color: "gray"
                      border.width: 1
                      implicitWidth: 200
                      implicitHeight: 24
                  }
                  progress: Rectangle {
                      color: "lightsteelblue"
                      border.color: "steelblue"
                  }
              }
      
              anchors.centerIn: parent
      
              indeterminate: true
          }
      }
      

      Attachments

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

        Activity

          People

            bachewii Jens
            qtcomsupport Qt Support
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes