[Solved] Printing problem
General and Desktop
6
Posts
4
Posters
2.7k
Views
1
Watching
-
wrote on 30 Apr 2011, 08:13 last edited by
Hi all.
I want to print texts entered in some LineEdit to specified locations on paper but i don't know how to do that. -
wrote on 30 Apr 2011, 08:29 last edited by
Did you look at the QPrinter class?
-
wrote on 30 Apr 2011, 09:30 last edited by
bq. "void QPrinter::setPaperSource - Sets the paper source...":http://doc.trolltech.com/latest/qprinter.html#setPaperSource
-
wrote on 30 Apr 2011, 11:57 last edited by
Thank you Andre and secretNinja. I explain my problem, i have preprinted blank tables and i want to print into the cells, values that a user has entered in LineEdits with user selected font and size, i don't know how to do that with the QPrinter class.
-
wrote on 30 Apr 2011, 23:02 last edited by
Create a "QPainter":http://doc.qt.nokia.com/4.7/qpainter.html on the QPrinter and use it's methods. The linked API docs lists all the relevant methods (drawXXX)
-
wrote on 1 May 2011, 05:52 last edited by
Thank you Volker, i'll try it.
1/6