Important: Please read the Qt Code of Conduct -

QPainter text subpixel antialiasing

  • How to draw text with subpixel antialiasing?

    @ QPixmap pixmap(20, 20);
    QPainter painter;
    painter.setRenderHints(QPainter::HighQualityAntialiasing | QPainter::TextAntialiasing);
    painter.drawText(1, 12, "А");
    painter.end();"R:/1234.png"); @

    It works with QWidget (and any other Q_OBJECT), but it's too expensive to do widget printscreen. So I need to draw text directly on the image

Log in to reply