How to print(with the printer) a QML object ?
-
wrote on 28 May 2013, 11:27 last edited by
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.
-
wrote on 28 May 2013, 16:13 last edited by
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.
-
wrote on 8 Jun 2013, 01:31 last edited by
Hi,
thank you for the response.
I have tried to print a QImage with the QPrintSupport module and it works perfectly.
-
wrote on 13 Oct 2014, 10:04 last edited by
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 -
wrote on 13 Oct 2014, 21:46 last edited by
Hi beenmanenl,
i haven't found my code.
Sorry.