Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Styling the Busy indicator in QML 2.0
QtWS25 Last Chance

Styling the Busy indicator in QML 2.0

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qmlqtquick2busy indicatorqtquickcontrol
5 Posts 4 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pra7
    wrote on 9 Jul 2019, 18:00 last edited by
    #1

    Hi All,

    I am using Busy indicator to show intermediate progress and i want to change the color of the circles. I referred Customizing Busy indicator link but this is changing the default animation and other things. Also, It is difficult to understand because there is no explanation for the same.

    I just want to change the color and the animations should be the same as default. Can anyone please suggest.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Pradeep P N
      wrote on 11 Jul 2019, 14:31 last edited by Pradeep P N 7 Nov 2019, 14:35
      #2

      Hi @pra7

      Can you please provide some screenshots/images based on your requirement ?
      Please check the below link, hope this can help you.

      A customized busy indicator in Qt Quick.

      All the best.

      Pradeep Nimbalkar.
      Upvote the answer(s) that helped you to solve the issue...
      Keep code clean.

      P 1 Reply Last reply 12 Jul 2019, 18:20
      1
      • P Pradeep P N
        11 Jul 2019, 14:31

        Hi @pra7

        Can you please provide some screenshots/images based on your requirement ?
        Please check the below link, hope this can help you.

        A customized busy indicator in Qt Quick.

        All the best.

        P Offline
        P Offline
        pra7
        wrote on 12 Jul 2019, 18:20 last edited by
        #3

        Hi @Pradeep-P-N,
        I just want to change the color of the busy indicator and the link that you have provided is for QML controls 1.0 and hence it doesn't work for QML 2.0.

        G 1 Reply Last reply 12 Jul 2019, 23:53
        0
        • P pra7
          12 Jul 2019, 18:20

          Hi @Pradeep-P-N,
          I just want to change the color of the busy indicator and the link that you have provided is for QML controls 1.0 and hence it doesn't work for QML 2.0.

          G Offline
          G Offline
          Gojir4
          wrote on 12 Jul 2019, 23:53 last edited by
          #4

          @pra7 Hi,

          You may want to use styles (Material, Universal, etc..) to apply theme and colors quite easily.
          I'm not sure if you can apply it only on one component or if it should applied to the whole application

          1 Reply Last reply
          1
          • E Offline
            E Offline
            Eligijus
            wrote on 15 Jul 2019, 07:02 last edited by
            #5

            This is how I style one off BusyIndicator:

                        BusyIndicator {
                            running: true
                            Component.onCompleted: {
                                contentItem.pen = "white"
                                contentItem.fill = "white"
                            }
                        }
            

            If I recall correctly I was looking at source code of BusyIndicator to understand how to style it.

            1 Reply Last reply
            4

            1/5

            9 Jul 2019, 18:00

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved