You have to use the QPrinter class to generate a pdf:
Qt Code:
Qprinter printer; printer.setOutputFileName(filename);To copy to clipboard, switch view to plain text mode
Have a look at void TextEdit::filePrintPdf() in http://doc.trolltech.com/4.2/demos-t...tedit-cpp.html .
Concerning viewing of a pdf doc, Qt is not shipped with a viewer, so you might have to use a third parties library or embed adobe ActiveX control in your app.
Bookmarks