[PyQt] QImage constructor
Filip Gruszczyński
gruszczy at gmail.com
Wed Oct 1 20:04:55 BST 2008
Hi,
I am trying to use constructor from the class reference:
QImage.__init__ (self, QString fileName, str format = None)
like this:
self.__image = QImage(file, QImage.Format_RGB32)
but what I get is:
TypeError: insufficient number of arguments to QImage()
Am I doing something wrong? Removing QImage.Format_RGB32 makes it work
fine. I am using PyQt 4.4.3
--
Filip Gruszczyński
More information about the PyQt
mailing list