Unsolved QML button to print Sqlite db form
-
Hello guys,
Any one know how can I print the db from qml button?
I did project following local storage from QT but now my db is fill out and I would like go far away with make form probably in js and make pdf with button on my qml page.Thank you for your help
-
Hi
I think you have to use c++
(unleass they added it later)
https://forum.qt.io/topic/57861/solved-how-to-take-a-print-in-qml -
@mrjj Thank a lot, as I understand in this link, they are printing a "screen shot" but it not my need.
My project has 3 tables each one for different thing and I'm looking to print all tables and be able to custom the "style"
-
Hi @filipdns
To add to @mrjj
I think that you have to use c++ too , with printer and printing api
I hope this can help you
-
Hi
In that sample they print image but its the same way you print your form by accessing the data
and "draw" it on printer object as pdf or paper. -
@mrjj said in QML button to print Sqlite db form:
Hi
In that sample they print image but its the same way you print your form by accessing the data
and "draw" it on printer object as pdf or paper.You can also be interested with this wiki , it's about printing a QTextDocument to PDF !
-
Thanks a lot, I will try that and give feedback ;-)