[SOLVED] truncating the QTime
-
Hi,
qDebug() << "QTime(\"" << iter->getTime_log()[0].time().toString("hh:mm::ss") << "\")";
-
@Lorence
it ask the time object (from time() ) to convert to a string (ToString) using the format
hours:minutes:seconds.
Since the milliseconds are not listed, they will not be there. -
I see @mrjj thanks.
cant i just convert the seconds part of the time to int?
something like this QTime::setSecond(int);