Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
@Harry123 I did it putting this in main.cpp and that's all folks ;-)
@Aleksey_A I am as green to Qt as one can be, a newbie for sure. But here goes: Maybe changing the QPrinter printer(QPrinter::HighResolution) to QPrinter printer(QPrinter::ScreenResolution) would help.