AjGilee
29th May 2011, 18:27
Hi, Guys.
While printing on dot matrix printer, text appeared too tight on portrait, and too loose while on landscape (only with Qt). When on other program like Office, etc, the printer works normal.
After some check, i found that it's caused by different resolution on the printer.
the printer support like: 240*144, 120*144, 120*72 dpi. (QPrinter physical res).
while QPrinter (logical res) is square (96*96, 300*300, etc.).
Any solution to get the text printed right?
PS: I've read this on Qt's Doc, but not sure how to get it done :o
Note that if the physicalDpiX() doesn't equal the logicalDpiX(), the corresponding QPaintEngine must handle the resolution mapping.
While printing on dot matrix printer, text appeared too tight on portrait, and too loose while on landscape (only with Qt). When on other program like Office, etc, the printer works normal.
After some check, i found that it's caused by different resolution on the printer.
the printer support like: 240*144, 120*144, 120*72 dpi. (QPrinter physical res).
while QPrinter (logical res) is square (96*96, 300*300, etc.).
Any solution to get the text printed right?
PS: I've read this on Qt's Doc, but not sure how to get it done :o
Note that if the physicalDpiX() doesn't equal the logicalDpiX(), the corresponding QPaintEngine must handle the resolution mapping.