Question on MouseCursor::showWaitCursor()

Hi folks,
I’m trying to implement a feature showing busy mouse cursor when loading a bunch of files. However, I haven’t managed to make it work yet.

For learning the MouseCursor behavior, I put a TextButton to toggle busy/normal cursor by calling MouseCursor::showWaitCursor() and MouseCursor::hideWaitCursor() methods alternately. The mouse cursor never changed a bit. Am I using it in the wrong way? Any help is appreciated.

Thanks,
Liang

Are you making the call in your components paint()/resized() methods, or elsewhere?

I’m calling showWaitCursor() in Button::Listener::buttonClicked method.