Re: Printing from a textEdit
Code:
printer.setOutputFileName("print.ps");
painter.begin(&printer);
painter.drawText(painter.pageRect(), YourQStringHere);
painter.end();
Quote:
Please don't send me any links to trolltech documentation. I have read it and I have found it to be confusing (at least to me).
Then you should probably learn C++ first since the documentations is the best out there for a c++ framework. And if you don't understand that reference you lacking to much object orientated knowledge to combine the documentations of QPrinter and QPainter...
Re: Printing from a textEdit
under ui->setupUi(this);
printer = new QPrinter;
then
textEdit->print(printer)