[PyKDE] Problem setting a cursor on widget

Rajeev Joseph Sebastian rajeev_jsv at dinamis.com
Fri Nov 11 18:26:20 GMT 2005


Hi,

How do I set a cursor for a particular widget ?

I tried using widget.setCursor( QCursor.PointingHandCursor), but it throws an 
exception saying ...

    self.objectLabel.setCursor(QCursor.PointingHandCursor)
TypeError: argument 1 of QWidget.setCursor() has an invalid type


Using the statement QCursor.PointingHandCursor in the Python console, returns 
an integer...

>>> QCursor.PointingHandCursor
13

Also, I could not find anything in the PyQt docs.


Regards, 
Rajeev J Sebastian

Dinamis Corporation
3266 Yonge Street, Suite 1419
Toronto, ON
Canada  M4N 3P6

+1 416-410-3326




More information about the PyQt mailing list