How to make a mileage calculator



  • 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............



  • 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.



  • 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.



  • 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 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



  • Thanks Lucas..........



  • 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!!



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.