Hi,
I have screen which holds many widgets like line-edit's and combo-box in it and takes the input values from the user,after filling the screen at bottom i have a push-button by clicking on this the respective slot gets activated.In that slot i am posting all the filled details to web service using QnetworkAccessManger and reading the response successfully.But my problem is while posting the data to service and reading the response from service takes some time,during this time i want the cursor to go in wait symbol and user actions on gui should be blocked/stopped .I already tried with the below commands which are
1) setCursor(Qt::WaitCursor);
postingtoServiceMethod();
QCoreApplication:rocessEvents(); // QApplication:rocessEvents();
setCursor(Qt::ArrowCursor);
2) QApplication::setOverrideCursor(QCursor(Qt::WaitCu rsor));
postingtoServiceMethod();
QApplication::restoreOverrideCursor();
By following above two methods never in my application the cursor goes into wait symbol stage nor gui gets blocked..?The main thing i need is on the first click of that button the gui should be blocked or should not take any user actions i.e there shouldn't be access to any mouse movement....
Bookmarks