[PyQt] WaitCursor is ignored

Mads Ipsen mpi at comxnet.dk
Tue Nov 3 21:12:35 GMT 2009


Baz Walter wrote:
> 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.
>
Things is:

It fails on Ubuntu 8.04, KUbuntu 9.04 and Ubuntu 9.04 with Qt 4.5.2.

But it works on Mac OS X with Qt 4.6.0-beta and XPSP3 with Qt 4.3.3.

I believe it's a Qt bug.

Mads


-- 
+-------------------------------------------------------------+
| Mads Ipsen, Scientific developer                            |
+-------------------------------+-----------------------------+
| QuantumWise A/S               | phone:         +45-29716388 |
| Nørre Søgade 27A              | www:    www.quantumwise.com |
| DK-1370 Copenhagen K, Denmark | email:  mpi at quantumwise.com |
+-------------------------------+-----------------------------+




More information about the PyQt mailing list