im writing some code to send request to google... so i need to place some delay between my request... i thought that the below code will work.. but nothing happen... do u know whats the problem?
// some code untill here
qDebug() << "Wait three Second...!";
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(fake()));
timer->start(3000);
myHttp.request(myRequestHeader);
connect(&myHttp,SIGNAL(responseHeaderReceived(QHtt pResponseHeader)),
this,SLOT(showResponseHeader(QHttpResponseHeader)) );
the fake() is a fake slot just for calling when the timer timed out...
and doing sthing like this
int a;
a++;
whats the problem here?
Bookmarks