Doc: Fix link to removed QFontMetrics::width function

The function was removed but documentation still referred to it.

Change-Id: I2fc1ef2ffc9cdc93e059dd1854816e6aa86dc972
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
David Boddie 2025-05-20 16:46:40 +02:00
parent 674a6dc5f6
commit fbc6b0c6e6

View File

@ -422,7 +422,7 @@ QFontEngineData::~QFontEngineData()
actually used are retrievable from a QFontInfo object. If the
window system provides an exact match exactMatch() returns \c true.
Use QFontMetricsF to get measurements, e.g. the pixel length of a
string using QFontMetrics::width().
string using QFontMetrics::horizontalAdvance().
Attributes which are not specifically set will not affect the font
selection algorithm, and default values will be preferred instead.