[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Can't create a QImage?
From:       Piotr_Antoniak <intothelight () o2 ! pl>
Date:       2008-05-31 15:47:30
Message-ID: 7beecbff.3ea1d52e.48417312.8ce8 () o2 ! pl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi! I'm very new to PyQt (just started using it today) and also quite new to Qt in \
general... I have a problem creating a QImage. No matter what I do, it creates a null \
one... here's the output I get after I try to create a 10x10 QImage:  &gt;&gt;&gt; \
image = qt.QImage(qt.QSize(10,10), 4) &gt;&gt;&gt; image.width()
0
&gt;&gt;&gt; image.height()
0
&gt;&gt;&gt; image.depth()
0
The third parameter means the RGB32 format... for some reason, when I type \
qt.QImage.Format_RGB32 there instead, I get the error "AttributeError: Format_RGB32". \
Can someone help me create a QImage? By the way, if I replace "qt.QSize(10,10)" with \
simply "10, 10" the result is exactly the same...


[Attachment #5 (text/html)]

<p>Hi! I'm very new to PyQt (just started using it today) and also quite new to Qt in \
general... I have a problem creating a QImage. No matter what I do, it creates a null \
one... here's the output I get after I try to create a 10x10 QImage:</p> <p>  </p>
<p>&gt;&gt;&gt; image = qt.QImage(qt.QSize(10,10), 4)<br />&gt;&gt;&gt; \
image.width()<br />0<br />&gt;&gt;&gt; image.height()<br />0<br />&gt;&gt;&gt; \
image.depth()<br />0<br /></p> <p>The third parameter means the RGB32 format... for \
some reason, when I type qt.QImage.Format_RGB32 there instead, I get the error \
"AttributeError: Format_RGB32". Can someone help me create a QImage? By the way, if I \
replace "qt.QSize(10,10)" with simply "10, 10" the result is exactly the same...</p>



_______________________________________________
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