QFont font("Arial", 12); font.setPointSizeF(14.5);
QFont font("Times New Roman", 10); font.setPointSizeF(11.75);This code creates a QFont object with Times New Roman font and a size of 10 points, then sets the point size to 11.75 points. These examples demonstrate how to use the QFont setPointSizeF function to set the font point size with floating point precision. The Qt library provides the QFont class and related functions for working with fonts in C++.