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. Make Moving Numbers (Like old gas counters)

Make Moving Numbers (Like old gas counters)

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 2 Posters 398 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.
  • JamshidJ Offline
    JamshidJ Offline
    Jamshid
    wrote on last edited by
    #1

    Hi there,
    How to Make Moving Numbers (Like old gas counters)?
    Actually, I mean sliding numbers!
    A thing like attached image.
    Thanks in advance.
    Qt question 1.png

    J.HilkJ 1 Reply Last reply
    0
    • JamshidJ Jamshid

      Hi there,
      How to Make Moving Numbers (Like old gas counters)?
      Actually, I mean sliding numbers!
      A thing like attached image.
      Thanks in advance.
      Qt question 1.png

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      Hi @Jamshid
      and welcome,

      you may want to check out the tumbler component of QuickControls(2)
      https://doc-snapshots.qt.io/qt5-5.12/qml-qtquick-controls2-tumbler.html

      however, if you want to represent partial whole numbers via the slide in state, you'll probably have to do it by hand


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      1
      • JamshidJ Offline
        JamshidJ Offline
        Jamshid
        wrote on last edited by
        #3

        Thanks @J-Hilk
        It's almost what I want, can I get the implementation idea behind of it and customize it for my app?
        sorry, I'm new to Qt and in learning process.

        J.HilkJ 1 Reply Last reply
        0
        • JamshidJ Jamshid

          Thanks @J-Hilk
          It's almost what I want, can I get the implementation idea behind of it and customize it for my app?
          sorry, I'm new to Qt and in learning process.

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @Jamshid
          sure,
          the documentation has a section about customizing QML components and the tumbler is one of them:

          https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-tumbler

          sorry, I'm new to Qt and in learning process

          nothing to be sorry about. Everyone starts at the same place 😉


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          1
          • JamshidJ Offline
            JamshidJ Offline
            Jamshid
            wrote on last edited by
            #5

            @J-Hilk
            Thanks for your kind help, I will try to do it and hope get succeeded.

            1 Reply Last reply
            0

            • Login

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