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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -