Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › QProgressBar

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18550

    Edward

    Hey!

    I have implemented progress bars in areas as a visual representation,

    Is there a way I can;

    1. alter the color of individual bars
    2. Adjust the thickness of the bar as they are displaying fairly small at current, please see below my current code.
       Quick2.ProgressBar {
                          id: progressBar
                          scale: 0.95
                          AppText {text: "Attack: 118" ;leftPadding: 10}
                          width: parent.width
                          anchors.horizontalCenter: parent.horizontalCenter
                          to: 345
                                PropertyAnimation {
                                  target: progressBaratk; property: "value"; from: 0; to: 118; duration: 3000;
                                  running: true; loops: 1
                                }
                              }

       

    #18560

    Günther
    Felgo Team

    Hi!

    For custom styling of Quick Controls, you can e.g. override the contentItem property. See Customizing Progressbar in the Qt docs.

    If you prefer, you can also create a fully custom bar that fits your need with plain Rectangle types and some Animations.

    Best,
    Günther

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.