What is the datatype you are using to store your "60000 seconds" value? You are aware that 60000 seconds is not one minute, right? So are we talkig about seconds or miliseconds here? What datatypes are you using for those values?
What is the datatype you are using to store your "60000 seconds" value? You are aware that 60000 seconds is not one minute, right? So are we talkig about seconds or miliseconds here? What datatypes are you using for those values?
am having one text file inside that
60000
10000
after reading this file i assigned to variables..and pass these variables to timeout ();
i want to display one images for first images for 60 seconds..and second image for 10 seconds.
code:
this was my code sirQt Code:
#define configpath "/digital_images/config" void Widget::readconfigfile() { dir.cd(configpath); QFile file1; file1.setFileName(dir.absoluteFilePath(configfile)); checkremoteseconds=stream.readLine().toInt(); checklocalseconds=stream.readLine().toInt(); }To copy to clipboard, switch view to plain text mode
Last edited by anda_skoa; 13th February 2015 at 12:22. Reason: missing [code] tags
Is it really that hard to read what I write?
What is the datatype you are using to store your "60000 seconds" value?
sorry sir.
i used datatype as QString
Wysota is asking: What is the data type of the variables checkremoteseconds and checklocalseconds?
Since you don't bother to check if the configuration directory exists, the config file exists in the directory, or the file opens successfully I would add:
What is the actual value you get in those variables?
What is the value of those variables when you actually use them?
Why have you chosen to use QObject::startTimer() instead of QTimer?
The largest value qint16 can hold is 2^15-1 = 32767.
iswaryasenthilkumar (16th February 2015)
Bookmarks