How r u printing the data? Did you look some of the examples given in assistant.
I could find the following.
void MainWindow::print()
{
if (dlg
->exec
() != QDialog::Accepted) return;
document->print(&printer);
statusBar()->showMessage(tr("Ready"), 2000);
}
void MainWindow::print()
{
QTextDocument *document = textEdit->document();
QPrinter printer;
QPrintDialog *dlg = new QPrintDialog(&printer, this);
if (dlg->exec() != QDialog::Accepted)
return;
document->print(&printer);
statusBar()->showMessage(tr("Ready"), 2000);
}
To copy to clipboard, switch view to plain text mode
Bookmarks