[PyQt] Signals with QGraphicsPixmapItem
Philippe Crave
philippe.crave at gmail.com
Sun Jun 13 06:29:16 BST 2010
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 <di_zou at yahoo.com>:
>
>
> 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 PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
More information about the PyQt
mailing list