[PyQt] Wrong cursor
Darryl Wallace
darryl.wallace at prosensus.ca
Thu Oct 29 13:55:20 GMT 2009
Hello,
On Thu, Oct 29, 2009 at 9:21 AM, Mads Ipsen <mpi at comxnet.dk> wrote:
> 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
>
I am using Ubuntu and the Qt::SizeAllCursor actually looks like a closed
hand. If you try the Qt::ClosedHandCursor, it looks like a slightly
different cursor.
I tried this using Qt 4.4.0 in C++ to verifiy that it is not a PyQt
"problem".
Darryl
>
> 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 |
> +-------------------------------+-----------------------------+
>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
--
______________________________________
Darryl Wallace: Project Leader
ProSensus Inc.
McMaster Innovation Park
175 Longwood Road South, Suite 301
Hamilton, Ontario, L8P 0A1
Canada (GMT -05:00)
Tel: 1-905-528-9136
Fax: 1-905-546-1372
Web site: http://www.prosensus.ca/
______________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091029/0b0786f7/attachment.html
More information about the PyQt
mailing list