QFont font("Arial", 10); font.setPointSizeF(9.5);
QFont font("Times", 12.5); float pointSize = font.pointSizeF();This example gets the point size of the font as a floating-point value using the pointSizeF() function and stores it in the pointSize variable. Package library: Qt