-
Moving QPixmap
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.
-
Re: Moving QPixmap
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.