How QML determines default font.pixelSize
-
Hi.
I'm trying to figure out how QML determines
font.pixelSize, because it is not simplyFontMetrics.height(orqApp->fontMetrics().height())
I. e. for system font size set to 12:
qApp->font().pointSize()is exactly 12 the same as QMLfont.pointSize
qApp->fontMetrics().height()is 19 (the same as QML FontMetrics)
but
qApp->font().pixelSize()is -1 mens undefined
whereas QMLfont.pixelSizeis 16
So how to obtain this last value, knowing system font size (pointSize) before QML will be initialized?