[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Wrong cursor
From: Darryl Wallace <darryl.wallace () prosensus ! ca>
Date: 2009-10-29 13:55:20
Message-ID: 7abc62af0910290655j583ae854k92f95c13483f6193 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hello,
On Thu, Oct 29, 2009 at 9:21 AM, Mads Ipsen <mpi@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@quantumwise.com |
> +-------------------------------+-----------------------------+
>
>
> _______________________________________________
> PyQt mailing list PyQt@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/
______________________________________
[Attachment #5 (text/html)]
<div class="gmail_quote">Hello,<br><br>On Thu, Oct 29, 2009 at 9:21 AM, Mads Ipsen \
<span dir="ltr"><<a href="mailto:mpi@comxnet.dk">mpi@comxnet.dk</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> The script below should display \
a QWidget with a Qt::SizeAllCursor. Instead it displays a Qt::ClosedHandCursor. \
Bug?<br> <br>
System information<br>
Linux<br>
Python 2.6.1<br>
Qt 4.5.2<br>
PyQt 4.5.4<br></blockquote><div>
<br>
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.<br>
<br>
I tried this using Qt 4.4.0 in C++ to verifiy that it is not a PyQt \
"problem".<br> <br>
Darryl<br><br> <br></div><blockquote class="gmail_quote" style="border-left: 1px \
solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br>
Mads<br>
<br>
import sys<br>
from PyQt4 import QtCore, QtGui<br>
<br>
if __name__ == "__main__":<br>
app = QtGui.QApplication(sys.argv)<br>
<br>
widget = QtGui.QWidget()<br>
widget.show()<br>
<br>
cursor = QtGui.QCursor(QtCore.Qt.SizeAllCursor)<br>
widget.setCursor(cursor)<br>
<br>
sys.exit(app.exec_())<br>
<br>
-- <br>
+-------------------------------------------------------------+<br>
> Mads Ipsen, Scientific developer |<br>
+-------------------------------+-----------------------------+<br>
> QuantumWise A/S | phone: +45-29716388 |<br>
> Nørre Søgade 27A | www: <a href="http://www.quantumwise.com" \
> target="_blank">www.quantumwise.com</a> |<br>
> DK-1370 Copenhagen K, Denmark | email: <a href="mailto:mpi@quantumwise.com" \
> target="_blank">mpi@quantumwise.com</a> |<br>
+-------------------------------+-----------------------------+<br>
<br>
<br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br> <a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br> \
</blockquote></div><br><br clear="all"><br>-- \
<br>______________________________________<br>Darryl Wallace: Project \
Leader<br>ProSensus Inc.<br>McMaster Innovation Park<br>175 Longwood Road South, \
Suite 301<br>Hamilton, Ontario, L8P 0A1<br> Canada (GMT -05:00) <br><br>Tel: \
1-905-528-9136<br>Fax: 1-905-546-1372<br><br>Web site: <a \
href="http://www.prosensus.ca/">http://www.prosensus.ca/</a><br>______________________________________<br>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic