Login  Register

drawing text issue

Posted by Johnson on May 23, 2013; 10:18am
URL: https://forum.librecad.org/drawing-text-issue-tp5708110.html

I want to draw TEXT directly into view, not using RS_Text, but the "ABCD" could not be displayed ...
Anybody know what's the problems ?

void QC_ApplicationWindow::testFont()
{
    RS_PainterQt painter(getMDIWindow()->getGraphicView()->PixmapLayer2);
    painter.setPen(0,0,255);
    painter.drawText(0,0,"ABCD");
    painter.end();
    getGraphicView()->redraw();
}