Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
4.4.0
-
None
Description
In order to get the most accurate information about a font, it should be "bound" to a widget such that its metrics or info can be queried from these (eg: QWidget::fontInfo()). This is normally achieved by calling one of the setFont() functions on the widget or painter. However, it may not always be desirable to set the font on the painter or the widget and in this case, it should be sufficient to use the QFont copy constructor that takes a QPaintDevice and pass the widget itself. However, this yields different results in some cases.