QStyleFactory Class
QStyleFactory 클래스는 QStyle 객체를 생성합니다. 더 보기...
| 헤더: | #include <QStyleFactory> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
정적 공용 멤버
상세 설명
QStyle 클래스는 GUI의 모양과 느낌을 캡슐화하는 추상 기본 클래스입니다. QStyleFactory는 create() 함수와 스타일을 식별하는 키를 사용하여 QStyle 객체를 생성합니다. 스타일은 내장되어 있거나 스타일 플러그인에서 동적으로 로드됩니다( QStylePlugin 참조).
keys() 함수를 사용하여 유효한 키를 가져올 수 있습니다. 일반적으로 "windows" 및 "fusion"과 같은 내장 스타일은 항상 사용할 수 있습니다. 플랫폼 스타일은 플러그인 형태이며 해당 플랫폼에서만 사용할 수 있습니다. Windows 11 Fluent 디자인을 따르는 "windows11", Windows의 "windowsvista", macOS의 "macos", Android의 "android" 등이 있습니다. 키는 대소문자를 구분하지 않습니다.
QStyle도 참조하십시오 .
멤버 함수 문서
[static] QStyle *QStyleFactory::create(const QString &key)
주어진 ` key`과 일치하는 ` QStyle ` 객체를 생성하여 반환하거나, 일치하는 스타일이 발견되지 않으면 ` nullptr `을 반환합니다.
일치하는 스타일을 찾기 위해 내장 스타일과 스타일 플러그인의 스타일을 모두 조회합니다.
참고: 키는 대소문자를 구분하지 않습니다.
keys()도 참조하십시오 .
[static] QStringList QStyleFactory::keys()
유효한 키 목록, 즉 이 팩토리가 스타일을 생성할 수 있는 키들을 반환합니다.
create()도 참조하십시오 .
© 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.