hello.
i have a problem whit qgraphics: i wrote these lines:
pixmap = 
QtGui.QPixmap("/media/glorious/datiVari/progettiProgrammazione/bitslaiser/f.jpg")
scene = QtGui.QGraphicsScene(QtCore.QRectF(0.0, 0.0, 300.0, 300.0))
scene.addPixmap(pixmap)
scene.addText("Hello, world!")
self.ui.graphicsView.setScene(scene)
self.ui.graphicsView.show()

graphicsView is a view created whit qt4 designer;
i don't receive any error, but it doesn't appear anything.
in the gui's code i have these lines:
self.graphicsView = QtGui.QGraphicsView(self.centralwidget)
self.graphicsView.setGeometry(QtCore.QRect(50,100,741,431))
self.graphicsView.setObjectName("graphicsView")

do i forget something? what can i do?

thanks in advice
luigi



      Unisciti alla community di Io fotografo e video, il nuovo corso di 
fotografia di Gazzetta dello sport:
http://www.flickr.com/groups/iofotografoevideo

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to