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. QPrinter/QPainter to print on Android device
Forum Updated to NodeBB v4.3 + New Features

QPrinter/QPainter to print on Android device

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 728 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    daviraim
    wrote on last edited by
    #1

    Hi Forum,

    I would like to print via QPrinter a document on a printer that is installed on my Android tablet. Unfortunately it does not work. When I display the QPrintDialog to choose the printer, only printing to a PDF file is possible. When I request which printers are available through QPrinterInfo :: availablePrinterNames, the answer is : no printer is available. Drivers for my HP printer are installed on my tablet and a standard application is able to print a document on my printer. I specify that the same code works perfectly on Windows and that I set all the permissions ("Any") in the manifest of the Android application. My environment is: Cross-compile Win10 / Android, Android NDKr10e, SDK: android-21, Qt 5.11, JDK 1.8.0_20, Ant 1.9.7 and the device target is on Android 5.1.1. Is it necessary to install an other package, an other application? Something more to declare in the manifest.xml ? A special configuration ? Anything else ?

    An idea ? Has anyone encountered the problem? If yes, how did you solve it?
    Thank a lot for your explanations/suggestions/clarifications/remarks.

    Regards,
    David.

    K 1 Reply Last reply
    0
    • D daviraim

      Hi Forum,

      I would like to print via QPrinter a document on a printer that is installed on my Android tablet. Unfortunately it does not work. When I display the QPrintDialog to choose the printer, only printing to a PDF file is possible. When I request which printers are available through QPrinterInfo :: availablePrinterNames, the answer is : no printer is available. Drivers for my HP printer are installed on my tablet and a standard application is able to print a document on my printer. I specify that the same code works perfectly on Windows and that I set all the permissions ("Any") in the manifest of the Android application. My environment is: Cross-compile Win10 / Android, Android NDKr10e, SDK: android-21, Qt 5.11, JDK 1.8.0_20, Ant 1.9.7 and the device target is on Android 5.1.1. Is it necessary to install an other package, an other application? Something more to declare in the manifest.xml ? A special configuration ? Anything else ?

      An idea ? Has anyone encountered the problem? If yes, how did you solve it?
      Thank a lot for your explanations/suggestions/clarifications/remarks.

      Regards,
      David.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @daviraim

      Possibly it is also good to check on google's qt android forum.

      Vote the answer(s) that helped you to solve your issue(s)

      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