Need i draw lines one by one via QPrinter? or Does QTextDocument or other class provide similar function?
Need i draw lines one by one via QPrinter? or Does QTextDocument or other class provide similar function?
Last edited by nifei; 23rd February 2009 at 06:01.
Use QGraphicsScene to make the diagram and print by calling QGraphicsScene::render().
nifei (23rd February 2009)
I found QTextCursor could insert table and QTextDocument could paint on this paint device. If it does not work, i 'll try your suggestion.
Thank you.
QTextDocument::print and QTextDocument::drawContents might be helpful to you![]()
Bookmarks