How do you get the system default font size in Qt?
Your application default font can be obtained from QApplication::font()
, which
Returns the default application font.
And you can gather a size of it using pointSize()
,pointSizeF()
,pixelSize()
, etc.
Get a default font QFont object and read the size from it.