that's because the text document has its own painter, and you were overriding it, and it uses its own painter on the printer object you give it.
As I said, QPainter is not to be found out side of a paintEvent()!
Glad it helped!![]()
that's because the text document has its own painter, and you were overriding it, and it uses its own painter on the printer object you give it.
As I said, QPainter is not to be found out side of a paintEvent()!
Glad it helped!![]()
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks