Hi,

I am in the process of moving from PyQt4 to PySide and encountered a
problem with the latter.

The following code works with PyQt4 but will only show a blank pixmap in PySide:

grview = QGraphicsView()
scene = QGraphicsScene()

data = open('139882.gif','rb').read()

pixmap = QPixmap()
pixmap.loadFromData(data) # This seems not to work

scene.addPixmap(pixmap)
grview.setScene(scene)

grview.show()

What am I missing?

Cheers,

Adrian
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to