Can't generate pdf with acceptable output quality using Qt
问题 I'm trying to generate a pdf using Qt5 under Windows. My document contains texts, images and charts. As I'm familiar with Qt and Qwt, I believed the best strategy was to create a QWidget with my document layout and simply print it. But I face problems and could not end up with an acceptable result. Here is my MCVE, a simple page document with: A header with title and image A piece of text A simple chart Based on Qt document and How can I print a QWidget in Qt?, I ended up with this code: main