Hi,
I´m trying to substract two hours.
QString 1 = "11:00";
QString 2 = "10:00";
I would like to save the result from (11:00 - 10:00) into another QString.
¿Does anyone know how could I do this?
Thanks for replying!
Hi,
I´m trying to substract two hours.
QString 1 = "11:00";
QString 2 = "10:00";
I would like to save the result from (11:00 - 10:00) into another QString.
¿Does anyone know how could I do this?
Thanks for replying!
Last edited by Alberto7; 26th October 2015 at 14:36. Reason: spelling corrections
Qt Code:
To copy to clipboard, switch view to plain text mode
In case you want to calculate the time difference, see QTime::fromString().
Cheers,
_
Bookmarks