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. Build for iPhone simulator error for QPrinter and QPrintDialog

Build for iPhone simulator error for QPrinter and QPrintDialog

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.4k 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.
  • P Offline
    P Offline
    PSI-lbc
    wrote on last edited by
    #1

    Is there a flag or define somewhere I need to set?

    The .pro file has:
    QT += printsupport

    The .h has the following includes:
    #include <QtPrintSupport>
    #include <QPrinter>
    #include <QPrintDialog>

    Compile Issues:
    /Users/PSI/Projects/Qt-Mobile/OT2Go/qCPP/clsUserRecord.cpp:1049: error: unknown type name 'QPrinter'
    QPrinter *printer = new QPrinter(QPrinter::HighResolution);
    ^
    unknown type name QPrinter

    Compile error messag:
    ** BUILD FAILED **

    The following build commands failed:
    CompileC qMarks.build/Debug-iphonesimulator/qMarks.build/Objects-normal/i386/clsUserRecord.o /Users/PSI/Projects/Qt-Mobile/OT2Go/qCPP/clsUserRecord.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler
    (1 failure)
    make[1]: *** [iphonesimulator-debug] Error 65
    make: *** [debug-iphonesimulator] Error 2
    10:24:51: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project qMarks (kit: iphonesimulator-clang Qt 5.3 for iOS-1)
    When executing step "Make"

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      I'm not sure that printing support is available on iOS (I may be wrong though)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        PSI-lbc
        wrote on last edited by
        #3

        Thx for the reply.

        Wonder why that would be? Lots of wireless printers..not like there needs to be a hard-wire connection.

        I guess I will try the QPdfWriter class...

        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