spylvas
14th October 2009, 09:08
Hi,
I am trying to make a countdown timer and got it working nicely using QTimer and QLCDNumber.
Only challenges is that I would like to show minutes and seconds on the view. i will get it show them and counting down seconds , but when last decimal is 0 it will be hidden. Or even worst when both of them are 0 it just shows minutes
Like this:
- 9.50 will be 9.5
- 9.00 will be 9
How do I get it always show two decimals? and can I somehow change decimal point to be colon?
Thanks
-S
I am trying to make a countdown timer and got it working nicely using QTimer and QLCDNumber.
Only challenges is that I would like to show minutes and seconds on the view. i will get it show them and counting down seconds , but when last decimal is 0 it will be hidden. Or even worst when both of them are 0 it just shows minutes
Like this:
- 9.50 will be 9.5
- 9.00 will be 9
How do I get it always show two decimals? and can I somehow change decimal point to be colon?
Thanks
-S