Questions tagged [qprinter]

The QPrinter class, part of the Qt framework, is a paint device that paints on a printer.

The QPrinter device represents a series of pages of printed output, and is used in almost exactly the same way as other paint devices such as QWidget and QPixmap. A set of additional functions are provided to manage device-specific features, such as orientation and resolution, and to step through the pages in a document as it is generated.

117 questions
134
votes
10 answers

How to convert webpage into PDF by using Python

I was finding solution to print webpage into local file PDF, using Python. one of the good solution is to use Qt, found here, https://bharatikunal.wordpress.com/2010/01/. It didn't work at the beginning as I had problem with the installation of…
Mark K
  • 8,767
  • 14
  • 58
  • 118
8
votes
1 answer

How to create pdf file from Qt application?

In my Qt application I am conducting some network tests. I have to create a report according to the test output. So I need to create the report in pdf format. Can anybody please let me know how I can put my test results in a pdf file? My result…
Surjya Narayana Padhi
  • 7,741
  • 25
  • 81
  • 130
7
votes
1 answer

Print error on page (qtWebkit)

Bug in Qt5.2.1: The only problem was corrected in QPrintPreviewDialog but when the print is printed on paper the failure still exists. With QPrintPreviewDialog pages work perfect, but on "paper" (printed in paper) from second page (in other words…
Protomen
  • 9,471
  • 9
  • 57
  • 124
6
votes
2 answers

QPrinter unable to style HTML page properly to render image in PDF document

I want to create a PDF document with properly styled HTML. This is what I am trying: QTextDocument *doc = new QTextDocument(); const char* s1 = "