Oh, I see, I though that setFullpage would scale the contents automatically. Lesson learned.
Thank you, ChrisW67, that pretty much fixes my issue. The printing of my widget is now a full page after scaling it.
However, now I'm stuck on the very next step (not sure if I should make a new thread for it).
The result is a PDF printed with just an image and no selectable text. MyWidget is suppose to mimic a MSAccess report for invoices, with its Logos, text, tables and stuff, so just an screenshot with the data won't do the job, it needs to be selected.
Researching this issue, I've been reading about printing to pdf as a QTextDocument with html formatting, but that sounds like a very undesirable workaround for something like this. I also found something about QGraphicsScene but I don't think that's the best solution either.
Is there any simple way to print a QWidget (with some QlineEdits and QLabels inside) as a PDF that can read text and not just an screenshotted version of MyWidget?
Edit: For easier understanding, I need this (which is already a working Qwidget) in PDF:
9T-KH7KlSkmsBUKW7xcbWA.jpg
Bookmarks