aaron
19th January 2010, 01:37
Hi all,
Good morning!
I meet a question about font style. When I use QPainter::drawText(...) method to draw a text on QGraphicsScene, but the text is not
clearly,like attachment. And how to fix it? Thanks!
By the way, The font's family is "Times", my code is like below:
QFont font = QFont("Times");
font.setPixelSize(4);
font.setFixedPitch(true);
QPen pe = painter.pen();
pe.setFont(font);
painter.setPen(pe);
painter.drawText(pos, index);
Good morning!
I meet a question about font style. When I use QPainter::drawText(...) method to draw a text on QGraphicsScene, but the text is not
clearly,like attachment. And how to fix it? Thanks!
By the way, The font's family is "Times", my code is like below:
QFont font = QFont("Times");
font.setPixelSize(4);
font.setFixedPitch(true);
QPen pe = painter.pen();
pe.setFont(font);
painter.setPen(pe);
painter.drawText(pos, index);