you can then overload the paint()
class BasePage(QGraphicsObject):
def __init__(self, parent):
super(BasePage, self).__init__(parent)
self.pic = QGraphicsPixmapItem(QPixmap(path_to_your_pic), self)
def paint(self, painter, option, widget=None):
painter.drawPixmap(QPointF(0, 0), self.pic)
2010/6/12 dizou <[email protected]>:
>
>
> I want the setPixmap functionality though.
>
>
> Philippe Crave wrote:
>>
>> you should inherit qgraphicsobject
>> http://doc.qt.nokia.com/4.6/qgraphicsobject.html
>>
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/Signals-with-QGraphicsPixmapItem-tp28859505p28865807.html
> Sent from the PyQt mailing list archive at Nabble.com.
>
> _______________________________________________
> PyQt mailing list [email protected]
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt