Results 1 to 3 of 3

Thread: How to display in memory image in QGraphicsTextItem

  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to display in memory image in QGraphicsTextItem

    I have an QImage created dynamically.

    How do I display it in the QGraphicsTextItem?

    Thanks

  2. #2
    Join Date
    Feb 2007
    Location
    Karlsruhe, Germany
    Posts
    469
    Thanks
    17
    Thanked 90 Times in 88 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to display in memory image in QGraphicsTextItem

    Doesn't that work the usual way, through QTextDocument::addResource?

    You can access the document through QGraphicsTextItem::document() .

    http://wiki.qtcentre.org/index.php?t...s_on_QTextEdit

    HIH

    Johannes

  3. #3
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to display in memory image in QGraphicsTextItem

    Quote Originally Posted by JohannesMunk View Post
    Doesn't that work the usual way, through QTextDocument::addResource?

    You can access the document through QGraphicsTextItem::document() .

    http://wiki.qtcentre.org/index.php?t...s_on_QTextEdit

    HIH

    Johannes
    Excellent!Thank you!

Similar Threads

  1. display pointer memory address
    By milosav in forum Qt Programming
    Replies: 8
    Last Post: 2nd February 2016, 08:54
  2. Qt Image Display...
    By mahe2310 in forum Qt Programming
    Replies: 9
    Last Post: 22nd July 2013, 09:06
  3. how to read in image date from memory zone
    By elflord in forum Qt Programming
    Replies: 2
    Last Post: 2nd June 2009, 19:44
  4. Image display
    By bmn in forum Qt Programming
    Replies: 1
    Last Post: 5th June 2008, 13:52
  5. OpenGL show image from buffer memory leak[SOLVED]
    By ^NyAw^ in forum Qt Programming
    Replies: 0
    Last Post: 30th January 2008, 16:21

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.