Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Print on a continuous paper
Forum Updated to NodeBB v4.3 + New Features

Print on a continuous paper

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 311 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    skydiver89
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved