How to place a QGraphicsPixmapItem in Pyqt mainwindow?
Hi i am trying to place a QGraphicsPixmapItem to a Position of x y in a GraphicsScene. I had used this command
"self.item.setPos(QtCore.QPointF(20,50))" its not working.
is there any way to move the QGraphics Item as Qlabel support label.move(x,y)
Re: How to place a QGraphicsPixmapItem in Pyqt mainwindow?
Quote:
"self.item.setPos(QtCore.QPointF(20,50))" its not working
And what isn't working? It is in the wrong position? It doesn't appear at all? What are the dimensions of your QGraphicsScene? Of your QGraphicsView? Is the QGraphicsPixmapItem a top-level item in the scene, or is it a child of another QGraphicsItem?
Re: How to place a QGraphicsPixmapItem in Pyqt mainwindow?
Quote:
is there any way to move the QGraphics Item as Qlabel support label.move(x,y)
Yes. QGraphicsItem::setPos()