How dp converts QTime to seconds? I set the time manually using time.setHMS(0,1,0);
time.setHMS(0,1,0);
Now, when I convert this time variable to an integer, I want to get 60 seconds. How to do it?
time
You can do it:
int seconds = QTime(0, 0, 0).secsTo(time);
Try using int seconds = QTime(0,0).secsTo(time); It works in Qt 5.3.0
int seconds = QTime(0,0).secsTo(time);
Source: https://habr.com/ru/post/1480149/More articles:How to open google maps using simple html - htmlJavascript warning field called with codebehind not working - javascriptGet an object with a given attribute from a deep hierarchy - javascriptHow to get the second SIM card number? - androidsignalr InvalidOperationException - signalrDjango Admin shows escaped HTML even when allow_tags = True - pythonIt may look like several DOM elements on the back panel in the form $ el - underscore.jsscala - declaration of an uninitialized variable - scalaConvert (.net) BsonDocument string to (java) DBObject - javaUndefined links when building OpenSSL - opensslAll Articles