[PyQt] Qt.color in pixel

Grissiom chaos.proton at gmail.com
Sat Apr 5 08:59:29 BST 2008


I'm a absolute newbie(new to Python and new to Qt). When I run this program:

#file test2.py
from PyQt4 import QtCore, QtGui

print 'QtCore.Qt.color1 is', (QtCore.Qt.color1)
mono_im = QtGui.QImage(10, 10, QtGui.QImage.Format_Mono)
mono_im.setPixel(5, 5, QtCore.Qt.color1)
print 'QtCore.Qt.color1 in pixel is', mono_im.pixel(5, 5)

I got this :

bash-3.1$ python test2.py
QtCore.Qt.color1 is 1
QtCore.Qt.color1 in pixel is 4294967295

Could anyone explain how could '1' became '4294967295'? Thanks in advance ;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080405/7dff9fe8/attachment.html

More information about the PyQt mailing list