Hello

I am generating a QML-ListModel from a table in my database for my QML UI, and I print it out (physically and PDF) with QTextDocument by placing all values in an HTML table and then calling the print function of the QTextDocument. This works perfectly.

I wanted to print out the bar and pie charts I make in QML, based on the QML-ListModel, but I’m not sure how I’d bring the QML element to a QPainter or anything that allows me to print it out.

Please do advise.