Take http://doc.trolltech.com/4.1/qtextdocument.html from qtextedit
xdoc = edit->document();
and send this to dialog;
http://www.qt-apps.org/content/show....?content=62383
Qt Code:
TextPrinter *textprinter_ = new TextPrinter(this); textprinter_->setHeaderSize(0); textprinter_->setLeftMargin(12); textprinter_->setRightMargin(10); textprinter_->preview(xdoc, tr("Preview xx"));To copy to clipboard, switch view to plain text mode




Reply With Quote
Bookmarks