N
N
Nikita Lubchich2013-12-06 11:25:38
Qt
Nikita Lubchich, 2013-12-06 11:25:38

How to specify placement of QPixmap in QGraphicsScene?

Actually, subject. I dug in the docks that the image is inserted at 0.0, but how to change this - no idea.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Lubchich, 2013-12-06
@Cybran

Found a solution

QGraphicsPixmapItem* item = scene.addPixmap(g);
item->setPos(15, -30);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question