Important: Please read the Qt Code of Conduct -

QPrinter is outputing the wrong symbol

  • I am using QPrinter to print a QString qs(10, QChar(205)) to my HP LaserJet 1320 printer. What was printed was a string of accentuated letter Í, despite the fact that QFont ("PC-8") was selected into QPainter, before QPainter::drawText was called.

    qDebug() << qs prints the right symbols on the screen.

    I do not know what I am doing wrong.

    Any help is appreciated.

    Thank you

Log in to reply