PDA

View Full Version : Printing with QTreeView



asankaan
30th October 2009, 11:00
Hi,

I'm using QT 4.5.
In my application, I use a QTreeView object to hold some data (around 100 rows with 10 columns).
I want to get a printout of the contents of the treeView object.
Is it possible? If so, please guide me on how to get it done.

Thanks in Advance.

Asanka

wysota
30th October 2009, 13:34
You can render the viewport() to the printer using QWidget::render() if that is satisfactory for you.

zhongzhu
29th January 2010, 04:13
what if the tree has too many rows to be displayed in one screen. the QWidget::render() seens can only save one screen?

wysota
29th January 2010, 11:31
Yes, that's correct.