PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 183 - QGraphicsScene.addPixmap isn't showing anything
: QGraphicsScene.addPixmap isn't showing anything
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: HEAD
: All All
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-03-15 10:22 EET by Marcelo Lira
Modified: 2010-03-24 16:36 EET (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Lira 2010-03-15 10:22:21 EET
Running the following script the pixmap is not shown in the QGraphicsScene:

from PySide.QtGui import *

app = QApplication([])

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()

app.exec_()
Comment 1 Hugo Parente Lima 2010-03-17 18:19:47 EET
The problem is on QPixmap.loadFromData, not QGraphicsScene.addPixmap.
Comment 2 Marcelo Lira 2010-03-19 16:01:29 EET
Fixed in shiboken/b8de1873 and pyside-shiboken/1356f832.