[PyQt] Why QImage.colorTable() returns signed int?

Phil Thompson phil at riverbankcomputing.com
Sun May 31 11:50:15 BST 2009


On Sun, 31 May 2009 14:48:10 +0900, INADA Naoki <songofacandy at gmail.com>
wrote:
> Hi.
> 
> QRgb type is unsigned int typedef and QImage.colorTable() method
> returns vector of QRgb.
> 
> But, there are minus integers in value QImage.colorTable() return when
> the QImage have color palette with alpha.
> 
> Is this a bug?

I think this would only happen if sizeof (unsigned) == sizeof (long).

Can you send me an image that demonstrates the problem?

Phil


More information about the PyQt mailing list