Код: Выделить всё
QString time = "10:00:00";
QTime tobj = QTime::fromString(currentTime,"hh:mm:ss");
tobj.addSecs(3600);
qDebugs()
Подробнее здесь: [url]https://stackoverflow.com/questions/59913704/qtime-how-to-add-substract-time-qt-c[/url]Код: Выделить всё
QString time = "10:00:00";
QTime tobj = QTime::fromString(currentTime,"hh:mm:ss");
tobj.addSecs(3600);
qDebugs()
Подробнее здесь: [url]https://stackoverflow.com/questions/59913704/qtime-how-to-add-substract-time-qt-c[/url]