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. Creating a virtual printer with Qt
Forum Updated to NodeBB v4.3 + New Features

Creating a virtual printer with Qt

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.9k 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.
  • M Offline
    M Offline
    moosehead
    wrote on last edited by
    #1

    Greetings !

    Is it possible to create a virtual printer, with Qt and C++, that will be cross-platform ?

    I searched the web but I keep finding that you need to create drivers for different kernels (os x, win, etc) :( :(

    I just want to create something that will be recognized by OS X and WIN as a virtual printer. This printer will generate PDF files from the information received rather than printing to a physical printer.

    Any comments, ideas or links are helpful.
    I'm a Qt beginner and this is my first post here, so don't be pissed off if this sounds easy to you.

    Thanks in advance!

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Hi,
      If it's just PDF's your creating:
      "PDF CREATION!":http://qt-project.org/wiki/Handling_PDF
      The printer itself virtual or not is OS specific. For every OS you need to write your own driver/application to get the printing tasks from the OS.
      Greetz

      Greetz, Jeroen

      1 Reply Last reply
      0
      • M Offline
        M Offline
        moosehead
        wrote on last edited by
        #3

        Hmmm .... I thought there can be some cross-platform Qt thing that once compiled, will show up as a printer in os x and win.

        Thanks for the link

        1 Reply Last reply
        0
        • JeroentjehomeJ Offline
          JeroentjehomeJ Offline
          Jeroentjehome
          wrote on last edited by
          #4

          Hi, I didn't say it couldn't be done, but why would Qt have a base class for it? Normal applications only output to a printer or file, almost never do they act like a printer.
          You could use Qt to supply the system with a virtual printer, that should be possible. Just figure out how the wanted OS needs drivers/links to your program to fulfill the needs of the OS. There might be differences in dependencies for OS's.
          Greetz

          Greetz, Jeroen

          1 Reply Last reply
          0
          • M Offline
            M Offline
            moosehead
            wrote on last edited by
            #5

            Thanks, I get a little of the idea.

            I am looking through Qt documentation to see if I can find something that hs to do with printers so I can read 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