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

Mention indeterminate state for Qt Quick Controls 2 ProgressBar customization

    XMLWordPrintable

Details

    • 57f5f462f (dev), 38f167d3c (6.7), 682518e18 (6.6), 085a0e3f6 (tqtc/lts-6.5)
    • DaVinci 92

    Description

      There was a nice example for customizing indeterminate state for Controls 1:
      https://doc.qt.io/qt-5/qml-qtquick-controls-styles-progressbarstyle.html#details

      On Controls 2 side, there is no mention of indeterminate state, but maybe that could be added:
      https://doc.qt.io/qt-6/qtquickcontrols-customize.html#customizing-progressbar

      The Controls 1 example almost works as is, maybe this could be added:

      contentItem: Item {
             anchors.fill: parent
             anchors.margins: 1
             visible: control.indeterminate
             clip: true
             Row {
                 Repeater {
                     Rectangle {
                         color: index % 2 ? "steelblue" : "lightsteelblue"
                         width: 20 ; height: control.height
                     }
                     model: control.width / 20 + 2
                 }
                 XAnimator on x {
                     from: 0 ; to: -40
                     loops: Animation.Infinite
                     running: control.indeterminate
                 }
             }
         }
      }
      

      Attachments

        For Gerrit Dashboard: QTBUG-116306
        # Subject Branch Project Status CR V

        Activity

          People

            treinio Topi Reiniƶ
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews