Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to make a mileage calculator

How to make a mileage calculator

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 3 Posters 4.1k Views 1 Watching
  • 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
    pragati
    wrote on last edited by
    #1

    hi guys,

    I want to make a calculator which should be able to calculate mileage and store the data when opened again. Its kinda remake of android app mileage calculator in qt.

    please give your suggestions and help to start with this..........

    features of mileage calculator:

    2 cells where we can write and as we move the cursor on the cell a keyboard should pop up and after giving the input it should give the mileage as output.....also after closing the app if we open it again it should add the previous data into the new one and give the final mileage....

    It seems a bit complex to me............hope anyone will respond to it asap!!!

    Thanks............

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      Well, I guess you should start with the basic documentation on Qt itself, followed by QML, including the examples and the Offline Storage API. When done so, creating such an app should come naturally to you.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        I have moved this topic from Tools (the forum about the tools you use for programming, not about any tools you program yourself) to Mobile and Embedded, as it seems to be the platform you are aiming for.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pragati
          wrote on last edited by
          #4

          thanks lucas......actually i made the calculator but i am not able to keep the input stored for the next time.
          i want that after closing the calculator when i open it again it should add the previous value to new one

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lgeyer
            wrote on last edited by
            #5

            [quote author="pragati" date="1326978172"]thanks lucas......actually i made the calculator but i am not able to keep the input stored for the next time.
            i want that after closing the calculator when i open it again it should add the previous value to new one
            [/quote]

            There are basically two options to have persistent data in QML

            • use the "Offline Storage API":http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeglobalobject.html#database-api
            • use C++, which enables you to use QFile and alike
            1 Reply Last reply
            0
            • P Offline
              P Offline
              pragati
              wrote on last edited by
              #6

              Thanks Lucas..........

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pragati
                wrote on last edited by
                #7

                hi.....

                I am newbie in qt so I am finding difficulties in building application.
                i have made a calculator which calculates mileage and a numeric keypad but now I am stuck in my app as how to make it work together.....That is I want when i move my cursor to one of the line edit of my calculator it should pop up to the numeric keypad

                please help!!

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  pragati
                  wrote on last edited by
                  #8

                  Hi,

                  My mileage calculator is working fine. On pressing the button the keyboard pops up, but now one thing in which i ma stuck is when i close the application the previously calculated mileage also gets deleted. I want previously calculated mileage to get added in the new calculated mileage as it happens in a actual odometers.

                  How to do this??Please help!!

                  Thanks,
                  Pragati

                  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