Question

However when I set cursor from style sheet or from code,

QApplication::setOverrideCursor(Qt::WaitCursor);

QApplication::restoreOverrideCursor(); // for restoring

It works fine with QT Creator.But it isn't working with QWS Server. When it comes to the board, mouse pointer isn't changing. I want to give a busy mouse until a page loading is completed. Please help.

Was it helpful?

Solution

Got a solution..

I just called process events fn after setting the mouse pointer so that the code was immediately executed n I got the busy mouse pointer till the page finished loading.

QCoreApplication::processEvents();

Thankz..!! ;)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top