Results 1 to 6 of 6

Thread: How to add a picture to a Graphicsview

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    May 2009
    Location
    Canada
    Posts
    163
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows Android
    Thanks
    7
    Thanked 20 Times in 20 Posts

    Default Re: How to add a picture to a Graphicsview

    Or, you can instantiate a QGraphicsPixmapItem and give it to QGraphicsScene::addItem(). To be clear, you don't add anything to a QGraphicsView, which is nothing more than a "porthole", if you like, onto the QGraphicsScene, which contains all your pictures etc.

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

    thaihoangluu (22nd December 2011)

Similar Threads

  1. Qt Picture change
    By Raymond in forum Qt Programming
    Replies: 2
    Last Post: 22nd February 2010, 03:19
  2. Getting Chart as picture
    By codeman in forum Qt Programming
    Replies: 4
    Last Post: 24th November 2009, 12:39
  3. how to center picture in graphicsview?
    By lanmanck in forum Qt Programming
    Replies: 11
    Last Post: 28th August 2009, 07:09
  4. can't load picture
    By aoo7wangyan in forum Qt Programming
    Replies: 9
    Last Post: 13th July 2009, 14:59
  5. resize a picture
    By omega36 in forum Qt Programming
    Replies: 2
    Last Post: 9th January 2009, 14:34

Tags for this Thread

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.