PDA

View Full Version : Change Cursor in PyQt4



sjbaugh
March 26th, 2009, 04:41 AM
I am just starting with QT4 in Python. Iam trying to change the cursor for a Widget to the CrossCursor (cross hairs) but I cannot find how to define the cursor in python. I am trying to use setCursor().

Any help will be appreciated.

Steve

sjbaugh
March 26th, 2009, 02:26 PM
After lots of trial and error I have found how to do it:


self.setCursor(QtGui.QCursor(QtCore.Qt.CrossCursor ))