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. Nokia Qt SDK and QT_NO_PRINTER define
Forum Updated to NodeBB v4.3 + New Features

Nokia Qt SDK and QT_NO_PRINTER define

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 3 Posters 5.3k 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
    DenisKormalev
    wrote on last edited by
    #1

    It is looks like that default Qt binaries for Qt Simulator were built with QT_NO_PRINTER define. So for apps using printing (just to pdf maybe) Qt libs should be rebuilt as I understand. Does anybody know the reason for this define presence in prebuilt libraries?

    1 Reply Last reply
    0
    • joborJ Offline
      joborJ Offline
      jobor
      wrote on last edited by
      #2

      The decision to define QT_NO_PRINTER has historical reasons AFAIR. Printing on embedded devices is not a very common task. Apart from generating PDFs, that's right.

      To work around you could wrap your QPrinter related code with QT_NO_PRINTER #ifdef's.

      Unfortunately you cannot just recompile Simulator Qt without QT_NO_PRINTER defined. Its configure that adds this define to mkspecs/qconfig.pri.

      If you think that this is something that should be fixed, then please file a report in our bug tracker.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DenisKormalev
        wrote on last edited by
        #3

        I'm using eXaro library which is based on printing to pdfs so it is not really easy to wrap code :)
        If I will change this settings in sources and recompile Qt will it work or there are some problems with qprinter?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          "Reported":http://bugreports.qt.nokia.com/browse/QTSIM-64 to bug tracker.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            snowpong
            wrote on last edited by
            #5

            Enabling QT_NO_PRINTER and recompiling the libraries probably won't work. We skipped doing printing on Symbian (as we did with Windows CE) to limit the scope and didn't see it as common usecase.

            Generating a .pdf makes sense though, so I see your point.

            If I were you I'd look into other solutions for generating .pdfs on Symbian using Qt at the moment.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              DenisKormalev
              wrote on last edited by
              #6

              snowpong, as for simulator rebuilding helped me (I'm able to generate pdfs).

              About other way for pdfs generating. I'm not sure I'm ready to rewrite eXaro library, but if it will not work at some devices then maybe I will need to do it :)

              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