How do you get the system default font size in Qt?

2019-06-16 18:59发布

问题:

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.

回答1:

Get a default font QFont object and read the size from it.



标签: qt fonts