Results 1 to 3 of 3

Thread: How do I associate a picture with a QGraphicsItem

  1. #1
    Join Date
    Sep 2009
    Posts
    60
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How do I associate a picture with a QGraphicsItem

    I am looking for something similar to the setPixmap() function in the QLabel class.
    So when I call QGraphicsScene.addItem(QGraphicsItem), I want a picture displayed where the QGraphicsItem is.

  2. #2
    Join Date
    Sep 2009
    Posts
    60
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How do I associate a picture with a QGraphicsItem

    Nevermind, figured it out

  3. #3
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: How do I associate a picture with a QGraphicsItem

    Just in case anyone else wants to do that: Use a QGraphicsPixmapItem.
    It's nice to be important but it's more important to be nice.

Similar Threads

  1. Associate userData to items added to a QListWidget.
    By schall_l in forum Qt Programming
    Replies: 3
    Last Post: 4th August 2009, 12:24
  2. Associate a minimize zone to QMainWindow
    By lixo1 in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2009, 13:48
  3. Associate Program Icon for Windows Desktop
    By brent99 in forum Newbie
    Replies: 2
    Last Post: 11th March 2008, 04:22
  4. how can i associate my program with a specific file?
    By mismael85 in forum Qt Programming
    Replies: 6
    Last Post: 13th February 2008, 14:33
  5. How can I associate arrow keys?
    By Mariane in forum Newbie
    Replies: 2
    Last Post: 20th January 2006, 18:31

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.