Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to print(with the printer) a QML object ?
QtWS25 Last Chance

How to print(with the printer) a QML object ?

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 4.2k 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.
  • S Offline
    S Offline
    SlimIT
    wrote on last edited by
    #1

    Hi,

    i have designed a sales receipt with Qt Quick and i want to print it with the printer.

    How can i do this ?

    Thank you very much.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Alek Śmierciak
      wrote on last edited by
      #2

      Hello,

      take a closer look at the "QPrintSupport":http://qt-project.org/doc/qt-5.0/qtprintsupport/qtprintsupport-module.html module, more specifically, at the "QPrinter":http://qt-project.org/doc/qt-5.0/qtprintsupport/qprinter.html class. Also of relevance might be "this article":http://qt-project.org/doc/qt-4.8/printing.html.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SlimIT
        wrote on last edited by
        #3

        Hi,

        thank you for the response.

        I have tried to print a QImage with the QPrintSupport module and it works perfectly.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          beemaneni
          wrote on last edited by
          #4

          hi slimIT,
          Could you help me out with the above thing?
          How do u print QImage using Qt API's.I ma struck with these for long?
          Can u post ur code?

          Thanks
          Bala Beemaneni

          Bala B
          Infinite Computer systems
          Chennai

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

            Hi beenmanenl,

            i haven't found my code.

            Sorry.

            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