How to print(with the printer) a QML object ?
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.
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.
thank you for the response.
I have tried to print a QImage with the QPrintSupport module and it works perfectly.
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?
i haven't found my code.