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)
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)
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?"self.item.setPos(QtCore.QPointF(20,50))" its not working
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Yes. QGraphicsItem::setPos()is there any way to move the QGraphics Item as Qlabel support label.move(x,y)
Bookmarks