Obsolete Members for QFont
QFont 클래스의 다음 멤버는 더 이상 사용되지 않습니다. 이들은 이전 소스 코드의 작동을 유지하기 위해 제공됩니다. 새 코드에서는 사용하지 않는 것이 좋습니다.
공용 함수
(deprecated in 6.0) int | legacyWeight() const |
(deprecated in 6.0) void | setLegacyWeight(int legacyWeight) |
멤버 함수 문서
[deprecated in 6.0]
int QFont::legacyWeight() const
이 함수는 6.0부터 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
대신 weight()를 사용하세요.
Qt 5 및 이전 버전에서 사용된 비표준 글꼴 무게 척도로 변환된 글꼴의 무게를 반환합니다.
Qt 6부터는 비표준 눈금 대신 OpenType 표준의 글꼴 무게 눈금이 사용됩니다. 이를 위해서는 이전 눈금을 사용하는 값에서 변환이 필요합니다. 편의를 위해 이전 눈금을 사용하는 코드에서 포팅할 때 이 함수를 사용할 수 있습니다.
setLegacyWeight(), setWeight(), weight() 및 QFontInfo 을참조하세요 .
[deprecated in 6.0]
void QFont::setLegacyWeight(int legacyWeight)
이 함수는 6.0부터 더 이상 사용되지 않습니다. 새 코드에서 이 함수를 사용하지 않는 것이 좋습니다.
대신 setWeight()를 사용하세요.
Qt 5 및 이전 버전의 레거시 글꼴 무게 척도를 사용하여 글꼴의 무게를 legacyWeight 로 설정합니다.
Qt 6부터는 비표준 눈금 대신 OpenType 표준의 글꼴 무게 눈금이 사용됩니다. 이를 위해서는 이전 눈금을 사용하는 값에서 변환이 필요합니다. 편의를 위해 이전 눈금을 사용하는 코드에서 포팅할 때 이 함수를 사용할 수 있습니다.
참고: styleName()가 설정되어 있으면 글꼴 선택 시 이 값이 무시될 수 있습니다.
legacyWeight(), 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.