Qt uses 9px
as default font size, but users (on Linux) can change this by using qtconfig
.
So, how do I get the system default font size? I read the documents, but I can not find any API.
Qt uses 9px
as default font size, but users (on Linux) can change this by using qtconfig
.
So, how do I get the system default font size? I read the documents, but I can not find any API.
Your application default font can be obtained from QApplication::font()
, which
And you can gather a size of it using pointSize()
,pointSizeF()
,pixelSize()
, etc.