Unsolved Print on a continuous paper
-
Hello. I need to print large documents on a printer TallyGenicom T2380. It uses continuous paper. I tried to use rather standard code for printing:
void MainWindow::print() { QTextDocument document(list->document()->toPlainText()); document.setDefaultFont(list->font()); QPrinter printer; QPrintDialog *dlg = new QPrintDialog(&printer, this); if (dlg->exec() != QDialog::Accepted) { dlg->deleteLater(); return; } document.print(&printer); dlg->deleteLater(); }
But it splits document for pages (page numbers are printing), I do not want this behavior. I tried to set paper size of printer by:
printer.setPaperSize(QPrinter::FanFoldGermanLegal);
It does not help. So how can I achieve continuous printing with QPrinter? Is it possible?