QStyleOptionFocusRect Class

QStyleOptionFocusRect 클래스는 QStyle 를 사용하여 초점 사각형을 그리기 위한 매개 변수를 설명하는 데 사용됩니다. 더 보기...

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

공용 타입

enum StyleOptionType { Type }
enum StyleOptionVersion { Version }

공용 함수

QStyleOptionFocusRect()
QStyleOptionFocusRect(const QStyleOptionFocusRect &other)

공용 변수

상세 설명

성능상의 이유로 멤버 함수는 거의 없으며 멤버 변수에 직접 액세스합니다(예: . 또는 -> 연산자 사용). 이렇게 하면 구조가 사용하기 쉽고 스타일 함수에 사용되는 매개변수라는 점을 강조할 수 있습니다.

QStyleOption참조하세요 .

멤버 유형 문서

enum QStyleOptionFocusRect::StyleOptionType

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

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

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

StyleOptionVersion참조하세요 .

enum QStyleOptionFocusRect::StyleOptionVersion

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

Constant설명
QStyleOptionFocusRect::Version11

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

StyleOptionType참조하세요 .

멤버 함수 문서

QStyleOptionFocusRect::QStyleOptionFocusRect()

멤버 변수를 기본값으로 초기화하여 QStyleOptionFocusRect를 생성합니다.

QStyleOptionFocusRect::QStyleOptionFocusRect(const QStyleOptionFocusRect &other)

other 스타일 옵션의 복사본을 생성합니다.

멤버 변수 문서

QColor QStyleOptionFocusRect::backgroundColor

이 변수는 초점 사각형이 그려지는 배경색을 보유합니다.

기본값은 RGB 값(0, 0, 0)의 유효하지 않은 색상입니다. 유효하지 않은 색은 기본 창 시스템에 올바르게 설정되지 않은 색입니다.

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