QApplication::setOverrideCursor might help you![]()
QApplication::setOverrideCursor might help you![]()
Hi,
Thanks,
Òscar Llarch i Galán
Hi,
I'm not able to make it work.
I've tryied:
QApplication::setOverrideCursor(Qt::ArrowCursor);
QApplication::changeOverrideCursor(Qt::ArrowCursor );
setCursor(Qt::ArrowCursor);
Thanks,
Òscar Llarch i Galán
How are u setting the code ??
Can we see the code ??
Hi,
This is the slot that is called when the action is triggered
Qt Code:
void MYmainWindow::mySlot() { setCursor(Qt::WaitCursor); //Also tryied: //QApplication::setOverrideCursor(Qt::WaitCursor); }To copy to clipboard, switch view to plain text mode
Òscar Llarch i Galán
I guess, Line 5 should be
u didnt make an object of the cursor !!QApplication::setOverrideCursor(QCursor(Qt::WaitCu rsor));
Hi,
Your code and mine does the same.
It set's the WaitCursor just a moment and then returns to ArrowCursor.
Mmmm, the slot, changes the cursor and then calls a object method that starts a thread. If I disable the call to this method, the WaitCursor is correctly showed. So, when "QThread:start()" is called, the aplication restores it's original cursor?
Òscar Llarch i Galán
Bookmarks