<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 26, 2009, at 10:52 AM, Frank Schima wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I'm seeing a strange issue with either QPixmap or QImage loading from a data string. In pyqt 4.4.4, the following attached example code produces an image - it looks like noise as expected. But with pyqt 4.5.1, it appears completely blank. I expect to see the noise-like image. Am I doing something wrong, or has something changed with regards to this in 4.5?</div><div><br></div><div>I'm running on Mac OS X 10.5.7 and python 2.5.4 using pyqt installed from&nbsp;Macports. Note: I modified my local portfile to install pyqt 4.5.1 because Macports is currently at version 4.4.4.&nbsp;</div></div></blockquote></div><br><div>The problem turned out to be in my makeColorTable method. Specifically the&nbsp;<span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">qRgb()&nbsp;<span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">function returns a different value for me with pyqt 4.5.1 and sip 4.8.1 than the value returned using 4.4.4/4.7.9. Should there be any difference between versions for that function?</span></span></div><div><br></div><div>For example, for qRgb(0,0,0) I get&nbsp;-16777216 with 4.4.4 and&nbsp;<span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">4278190080&nbsp;<span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">with 4.5.1.&nbsp;</span></span></div><div><br></div><div><br></div><div>Cheers!</div><div>Frank</div><div><br></div><div><br></div></body></html>