[PySide] QPixmap() not working
Frank Rueter | OHUfx
frank at ohufx.com
Thu Dec 31 06:24:28 CET 2015
Hi all,
this may be a bug of user error:
This code works fine on Windows under PySide 1.0.9 but under PySide
1.2.4 it returns a null pixmap:
pixmap = QPixmap('z:/path/to/image/image.svg')
print pixmap.isNull()
l = QLabel('test')
l.setPixmap(pixmap)
l.show()
Is this a bug in 1.2.4 or am I doing something wrong?
Happy New Year from New Zealand everybody!
Cheers,
frank
--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/index.php/vfx-compositing> | *workflow customisation
and consulting <http://ohufx.com/index.php/vfx-customising>* *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20151231/faba7025/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ohufxLogo_50x50.png
Type: image/png
Size: 2666 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20151231/faba7025/attachment.png>
More information about the PySide
mailing list