Obsolete Members for QFontMetrics

以下成員源於類 QFontMetrics 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) int charWidth (const QString & text , int pos ) const

成員函數文檔編製

int QFontMetrics:: charWidth (const QString & text , int pos ) const

Returns the width of the character at position pos in the string text .

The whole string is needed, as the glyph drawn may change depending on the context (the letter before and after the current one) for some languages (e.g. Arabic).

This function also takes non spacing marks and ligatures into account.