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

ProgressBar does not show progress if style has been

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.2.1, 5.3.0 Alpha
    • Fix Version/s: 5.3.0 Beta1
    • Component/s: Quick: Controls 1
    • Labels:
      None
    • Environment:
      Windows 7, Linux
    • Commits:
      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

            Assignee:
            bachewii Jens
            Reporter:
            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