[PyQt] WaitCursor is ignored

Baz Walter bazwal at ftml.net
Tue Nov 3 18:45:55 GMT 2009


Mads Ipsen wrote:
> Hey,
> 
> I want to display a widget as disabled (setEnabled(False)) with its 
> cursor set to Qt.WaitCursor.
> 
> Disabling the widget, however, always display the widget with a normal 
> Qt.ArrowCursor if if the cursor is changed. How do I obtain a disabled 
> widget with a Qt.WaitCursor?

i suppose this is because disabled widgets don't handle mouse events.

put the widget inside a container widget (which always stays enabled), 
and then set the cursor on the container.


More information about the PyQt mailing list