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.