Results 1 to 5 of 5

Thread: can we change QPixmap image of Qgraphicsscene dynamically?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: can we change QPixmap image of Qgraphicsscene dynamically?

    When you add the pixmap item for the first time using QGraphicsScene::addPixmap save the pointer to QGraphicsPixmpaItem returned by the function. Then, everytime the timeout signal is emitted using QGraphicsPixmapItem::setPixmap change the pixmap.

    Hope this helps.

  2. The following user says thank you to munna for this useful post:

    ajo (30th April 2013)

Similar Threads

  1. Saving QGraphicsScene with OpenGL to image
    By elbaschid in forum Qt Programming
    Replies: 1
    Last Post: 12th March 2009, 20:32
  2. QPixmap display on QGraphicsScene
    By febil in forum Qt Programming
    Replies: 2
    Last Post: 26th February 2009, 09:27
  3. add(draw) an icon(or image) to a QPixmap?
    By ascii in forum Qt Programming
    Replies: 4
    Last Post: 20th November 2008, 12:44
  4. Replies: 2
    Last Post: 29th September 2008, 00:08
  5. Loading a custom image into a QPixmap
    By KShots in forum Qt Programming
    Replies: 12
    Last Post: 5th August 2006, 00:16

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
  •  
Qt is a trademark of The Qt Company.