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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support