Obsolete Members for QFontInfo

クラスQFontInfo の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。

パブリック関数

(deprecated) int legacyWeight() const

メンバ関数ドキュメント

[deprecated] int QFontInfo::legacyWeight() const

この関数は非推奨である。新しいコードでは使用しないことを強く推奨する。

代わりにweight() を使用してください。

Qt 5 およびそれ以前のバージョンで使用されていた非標準のフォントウェイトスケールに変換したフォントのウェイトを返します。

Qt 6 以降では、非標準の尺度の代わりに OpenType 標準のフォントウェイト尺度が使用されます。このため、古いスケールを使用する値からの変換が必要になります。便宜上、この関数は、古いウェイトスケールを使用するコードから移植する際に使用することができます。

QFont::setWeight(),weight(),QFontInfoも参照

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.