Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. question about QML e-bike example

question about QML e-bike example

Scheduled Pinned Locked Moved Solved The Lounge
5 Posts 2 Posters 655 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.
  • M Offline
    M Offline
    mzimmers
    wrote on 1 Jan 2021, 20:03 last edited by
    #1

    Hi, all and HNY to everyone. Let's hope that 2021 begins better than 2020 ends.

    So, I'm trying to learn a little about QML/Qt Quick, and I'm looking at the provided e-bike example. If I'm reading this correctly, the example uses a time line to effect display changes (from speedometer to a map to a usage timeline chart.

    My question is, is this the "normal" way of moving from one display to another? I'm not trying to sound all-knowing (by any means), but to me, that seems a little unnatural. Is there a reason for doing it this way, and would this be considered best practices?

    Thanks for any clarification...

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 1 Jan 2021, 20:16 last edited by
      #2

      Hi and HNY to you too,

      Can you link the relevant code ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply 1 Jan 2021, 20:18
      0
      • S SGaist
        1 Jan 2021, 20:16

        Hi and HNY to you too,

        Can you link the relevant code ?

        M Offline
        M Offline
        mzimmers
        wrote on 1 Jan 2021, 20:18 last edited by
        #3

        @SGaist this is the project:
        e-bike

        I'm referring to the use of timelines and states to move from one display to another. I know this isn't a good description, but that's about all I can say about it given my current level of understanding.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 1 Jan 2021, 22:01 last edited by
          #4

          Not exactly, states are used to move from one screen to another which is not uncommon. If you take the automation world, for exemple a CNC machine, each state of the machine may show a different screen. For exemple, full controls when stopped, current operation when working with a big stop button etc. That can be modeled with a state machine and so each state will show a different screen.

          The timeline here is just there to allow you to animate the transition phase between one screen and another. It's a bit like what you can do with a keynote presentation. You can add effects between two slides. Here you control how the transition between two screens will look like. You do not need it to switch between two screens, but you use it so can have something nice and polished to show to your customer.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2
          • M Offline
            M Offline
            mzimmers
            wrote on 4 Jan 2021, 17:38 last edited by
            #5

            That's a good explanation; thanks.

            1 Reply Last reply
            0

            2/5

            1 Jan 2021, 20:16

            • Login

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