Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Print on Android!
Forum Updated to NodeBB v4.3 + New Features

Print on Android!

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 263 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.
  • R Offline
    R Offline
    RenanHm
    wrote on last edited by
    #1

    Hello.. I'm having trouble printing something on Android. I'm using the QPrinter and QPrintDialog class.
    Here's the code:

        printer = new QPrinter();
        printer->setOutputFormat(QPrinter::NativeFormat);
        QPrintDialog *dlg = new QPrintDialog(printer, this);
        if (dlg->exec() == QDialog::Accepted) {
            TE_Rel->document()->print(printer);
        }
    

    When printing, only the option "Print to File (PDF)" appears.

    I have other print drivers installed on Android but it doesn't show up in QPrintDialog.

    How to send text to printer installed on Android?

    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