Results 1 to 2 of 2

Thread: Moving QPixmap

  1. #1

    Question 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.

  2. #2
    Join Date
    Sep 2009
    Posts
    140
    Thanks
    4
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default 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.

Similar Threads

  1. Position in a QPixMap created from a QGraphicsScene
    By stevel in forum Qt Programming
    Replies: 8
    Last Post: 8th April 2009, 22:39
  2. QPixmap Rotating but not translating
    By Qt Coder in forum Qt Programming
    Replies: 0
    Last Post: 8th April 2009, 10:40
  3. drawing on a QPixmap or QImage
    By gren15 in forum Newbie
    Replies: 15
    Last Post: 3rd March 2009, 17:48
  4. QPixmap memory handling
    By Angelo Moriconi in forum Qt Programming
    Replies: 0
    Last Post: 1st December 2008, 15:37
  5. QPixmap and HBITMAP
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2006, 16:24

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.