Quick tips to adjust font size
Jump to navigation
Jump to search
h1. 4 Quick tips to adjust Font Size.
Use doc:QFont class
==== When you know font size in terms of Integer ,
void QFont::setPointSize ( int pointSize )<code> ====
==== Sometimes , it is required that we need font size other than the prescribed sizes. ====
void QFont::setPointSizeF ( qreal pointSize ) is really useful in that manner.
Stylesheet
Using style sheet must be the simplest way.
<br />void setStyleSheet ( const QString & sheet )<br />label->setStyleSheet ("Font : 12pt&quot;);<br />
'
We can use HTML tags as well, when applicable.
'