c++ - How to change fontsize on drawText? -
qstring str = qstring::number((double)i, 'd', 1); painter->drawtext(100 + * 800/9 - 6, 910, 40, 40, 0, str );
i increase fontsize 2x showing?
you try (haven't compiled code see if works!):
qfont font = painter->font() ; /* twice size current font size */ font.setpointsize(font.getpointsize() * 2); /* set modified font painter */ painter->setfont(font); /* draw text etc. */ painter.drawtext(....);
Comments
Post a Comment