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............
-
[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
-
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 keypadplease 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