Obsolete Members for QFontInfo
QFontInfo クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが動作し続けるように提供されているものです。新しいコードでの使用は強く推奨しません。
パブリック関数
(deprecated) int | legacyWeight() const |
メンバー関数のドキュメント
[deprecated] int QFontInfo::legacyWeight() const
この関数は非推奨です。新しいコードでの使用は強く推奨しません。
代わりに `weight()` を使用してください。
Qt 5 およびそれ以前のバージョンで使用されていた非標準のフォントウェイトスケールに変換されたフォントのウェイトを返します。
Qt 6 以降では、非標準のスケールの代わりに OpenType 標準のフォントウェイトスケールが使用されています。そのため、旧スケールを使用している値からの変換が必要となります。便宜上、旧ウェイトスケールを使用しているコードから移植する際には、この関数を使用することができます。
QFont::setWeight()、weight()、およびQFontInfoも参照してください 。
© 2026 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.