[PyQt] Problem on qt label

Zoltan Szalai defaultdict at gmail.com
Mon Mar 28 08:56:33 BST 2011


That's probably because QImageReader does not support .jpg files.

You can check the supported image formats this way:

from PyQt4.QtGui import QImageReader

see: http://doc.qt.nokia.com/4.7/qimagereader.html#supportedImageFormats


On 2011.03.27. 20:37, Matteo Boscolo wrote:
> Hi All,
> I've solved the problem using png format insted of jpg ..
> anyone can tell my way ?
> regards,
> Matteo
> Il 26/03/2011 09:54, Matteo Boscolo ha scritto:
>> Hi all,
>> I have a QDialog in witch I put a qtreeview and a label.
>> the datamodel of the qtreeview contains a field that is bite array 
>> that rappresent a bitmap.
>> if I run the stand alone dialog the label will be update when I click 
>> on the qtreeview row with the relative bitmap.
>> if I run this dialog as a children of a cad application via com 
>> server it works well but the label dose not show the image ..
>> I also try to show a text instead a bitmap and it works well in the 
>> dialog ..
>> Have you any idea on how to solve This issue ?
>> Regards,
>> Matteo
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

More information about the PyQt mailing list