[PyQt] Wrong cursor

Mads Ipsen mpi at comxnet.dk
Thu Oct 29 13:21:40 GMT 2009


The script below should display a QWidget with a Qt::SizeAllCursor. 
Instead it displays a Qt::ClosedHandCursor. Bug?

System information
Linux
Python 2.6.1
Qt 4.5.2
PyQt 4.5.4

Mads

import sys
from PyQt4 import QtCore, QtGui

if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)

    widget = QtGui.QWidget()
    widget.show()

    cursor = QtGui.QCursor(QtCore.Qt.SizeAllCursor)
    widget.setCursor(cursor)

    sys.exit(app.exec_())

-- 
+-------------------------------------------------------------+
| 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