Haaga-Helia University of Applied Sciences
Mobile Linux Development with QT - ITP8TF500-2
Toni Törnqvist
13.01.2011
Information
Name: StopWatch LE
Description: Tool for measuring time
License: GPL v2
Background information: This program was written as a project work, for the 'Mobile Linux development with QT' course in 2011.
Source: stopwatch
Usage
The program is used with two buttons;
- Start/Stop
- Interval/Reset
To start and stop measuring press 'Start/Stop'-button. When Stopwatch is running, user can take an intervaltime by pressing 'Interval/Reset'-button.
The 'Interval/Reset' button will reset the stopwatch if pressed while it's not running.
Description
The program was mainly made by experimenting with QML and JavaScript. The background consists of a bunch rectangles on top of each other. The functionalities:
- Start/Stop-button
When Start/Stop-button is clicked, the program checks if the 'Timer-elements' running property is true or false. If it's false, a 'Start' method is called, and the
Timer-element starts. The timer element is repeated, and it counts the time by comparing the starttime with current time, and writeing it to the screen on every interval.
If 'running property' is true, a 'stop method' is called, and the 'Timer-element' is stopped.
- Interval/Reset-button
When this button is clicked, the program checks again if 'Timer-elements' running property is true or false. In case it's true, an interval time is counted and written
in to the second "textwindow". If 'running property' is false all "textwindows" are cleared.
Future
The program was supposed to have a lot of additional details and functions, but somehow the author run out of time. Future versions might include:
- Analog counter in background
- Posibility to save results
- Countdown option
and so on...