Print checkbox box into file pdf
-
wrote on 3 Jun 2020, 10:21 last edited by
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 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?wrote on 3 Jun 2020, 10:26 last edited by -
wrote on 3 Jun 2020, 10:34 last edited by
Thanks JonB, but nothing .. unfortunately it doesn't work and I don't print the box ...
-
wrote on 3 Jun 2020, 10:45 last edited by
the important thing is that the checked or unchecked box is displayed in the pdf file statically, that is, I am only interested in printing it .. then for check management I will do it with the software code before printing
-
Lifetime Qt Championwrote on 3 Jun 2020, 12:25 last edited by mrjj 6 Mar 2020, 12:29
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.
3/6