Hello. I need a QTreeView , DrawTree function example. I have a QTreeView with info and I need to print it.. How can I do this?
Hello. I need a QTreeView , DrawTree function example. I have a QTreeView with info and I need to print it.. How can I do this?
Could you elaborate the problem? Most likely you don't need or want to reimplement QTreeView::drawTree() but to implement a custom delegate.
J-P Nurmi
I have a searchWidget, where search is in QTreeView . And I need print all it . Where are a lot of colums and rows
With "printing", do you mean populating the tree view or actually printing something with a printer? If the former, you should create and fill a model which you set to the view.
J-P Nurmi
I mean printing something with a printer
How about opening a QPainter on QPrinter, and using QWidget::render()?
J-P Nurmi
Bookmarks