Results 1 to 2 of 2

Thread: How to export QTreeWidget to a picture

  1. #1
    Join Date
    Jun 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How to export QTreeWidget to a picture

    I am trying to figure out a way to export QTreeWidget contents to a picture. use screen shot is a good idea but when all items are expanded, one screen can't hold them all. any ideas?

  2. #2
    Join Date
    Nov 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to export QTreeWidget to a picture

    You can use QWidget::render to render a widget's contents onto a QPainter / QPaintDevice.
    http://doc.trolltech.com/4.5/qwidget.html#render-2

Similar Threads

  1. QTreeWidget refeshing view
    By grazyna in forum Qt Programming
    Replies: 3
    Last Post: 10th August 2009, 14:31
  2. Filling QTreeWidget / Using QTreeView
    By stefanborries in forum Qt Programming
    Replies: 1
    Last Post: 15th April 2009, 15:25
  3. Print RichText and a scaled Picture
    By kray in forum Qt Programming
    Replies: 1
    Last Post: 29th December 2008, 20:56
  4. how to sync a QTreeWidget and a QListWidget?
    By zl2k in forum Qt Programming
    Replies: 2
    Last Post: 5th September 2008, 20:55
  5. resizing a QTreeWidget
    By drhex in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2006, 22:32

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.