[Qt-interest] How to use QTime

Parameshwari paramr at tataelxsi.co.in
Thu Apr 16 15:12:19 CEST 2009


Hi All,


                I have tried this code to generate a delay before displaying
the Frame which is :


    QTime time = QTime::currentTime();      // get the current time
    QTime time2= QTime::currentTime().addSecs(5);
    this->showMaximized();
    while(time >= time2 )
    {
        time = QTime::currentTime();
    }
    this->close();

But it is not working well. I am not sure whether i have done any mistake in
the above code.
In the file , The Window is maximized only. It' not even entering to the
"while" loop i believe.
Some one correct me.


Regards
Param





More information about the Qt-interest-old mailing list