PDA

View Full Version : Moving QPixmap



Revengeog
1st October 2009, 12:54
Hello,

I want to move a QPixmap item.

I created

QPixmap image = QPixmap("C:/icons/m.png");

and now i want to place image on screen than i want to move it.

exactly,i need this functions:
image.place(x,y);
image.move(x,y);
(x and y are coordinates)

waiting for your help.

scascio
1st October 2009, 12:57
QPixmap is only an object containing data.

You can only move the QWidget it is drawn into or the QGraphicsPixmapItem if you use QGraphicsView.

Both get all the method you need to place your pixmap.