Print checkbox box into file pdf
Unsolved
General and Desktop
-
Hi everyone,
I would need some advice: how can I print a checkbox item (to understand a checked or unchecked box) in a pdf file?
I state that I create the pdf file with Qprinter.
I tried to create a checkbox with html tags and through QTextDocument and then setHtml only prints the label part of the checkbox and not the box.
How can I do it? -
Hi
You can render a QCheckBox to QPrinter.
https://doc.qt.io/qt-5/qwidget.html#render
Not sure if you mean a real checkbox or some HTML something.