QStyleHintReturnVariant Class

QStyleHintReturnVariant 클래스는 QVariant 를 반환하는 스타일 힌트를 제공합니다.. ..

헤더: #include <QStyleHintReturnVariant>
CMake: find_package(Qt6 REQUIRED COMPONENTS Widgets)
target_link_libraries(mytarget PRIVATE Qt6::Widgets)
qmake: QT += widgets
상속합니다: QStyleHintReturn

공용 타입

enum StyleOptionType { Type }
enum StyleOptionVersion { Version }

공용 함수

공용 변수

QVariant variant

상세 설명

멤버 유형 문서

enum QStyleHintReturnVariant::StyleOptionType

이 열거형은 스타일 옵션의 유형에 대한 정보를 저장하는 데 사용되며 각 QStyleHintReturn 하위 클래스마다 정의됩니다.

Constant설명
QStyleHintReturnVariant::TypeSH_Variant제공되는 스타일 옵션의 유형입니다(이 클래스의 경우SH_Variant ).

이 유형은 QStyleHintReturn, 그 하위 클래스 및 qstyleoption_cast()에서 스타일 옵션의 유형을 결정하기 위해 내부적으로 사용됩니다. 일반적으로 자체 QStyleHintReturn 하위 클래스와 자체 스타일을 만들려는 경우가 아니라면 이에 대해 걱정할 필요가 없습니다.

StyleOptionVersion참조하세요 .

enum QStyleHintReturnVariant::StyleOptionVersion

이 열거형은 스타일 옵션의 버전에 대한 정보를 저장하는 데 사용되며 각 QStyleHintReturn 서브클래스에 대해 정의됩니다.

Constant설명
QStyleHintReturnVariant::Version11

이 버전은 QStyleHintReturn 하위 클래스에서 호환성을 깨지 않고 확장을 구현하는 데 사용됩니다. qstyleoption_cast ()를 사용하는 경우 일반적으로 확인할 필요가 없습니다.

StyleOptionType참조하세요 .

멤버 함수 문서

QStyleHintReturnVariant::QStyleHintReturnVariant()

Q스타일 힌트 리턴 변수를 구축합니다. 멤버 변수는 기본값으로 초기화됩니다.

[noexcept] QStyleHintReturnVariant::~QStyleHintReturnVariant()

디스트럭터.

멤버 변수 문서

QVariant QStyleHintReturnVariant::variant

이 변수는 스타일 힌트에 대한 변형을 보유합니다. QVariant

© 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.