PDA

View Full Version : How to export QTreeWidget to a picture



zhongzhu
28th November 2009, 01:17
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?:confused:

dhrosa
28th November 2009, 09:53
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