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.