이 페이지에서

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)
QStyleOptionFocusRect &operator=(const QStyleOptionFocusRect &)

공개 변수

상세 설명

성능상의 이유로 멤버 함수는 거의 없으며, 멤버 변수에 대한 액세스는 직접적으로 이루어집니다(즉, . 또는 -> 연산자를 사용). 이로 인해 구조체를 사용하기 쉬우며, 이들이 단순히 스타일 함수가 사용하는 매개변일 뿐임을 강조합니다.

QStyleOption도 참조하십시오 .

멤버 유형 설명

enum QStyleOptionFocusRect::StyleOptionType

이 열거형은 스타일 옵션의 유형에 대한 정보를 담기 위해 사용되며, 각 ` QStyleOption ` 하위 클래스에 대해 정의됩니다.

상수상수명설명
QStyleOptionFocusRect::TypeSO_FocusRect제공된 스타일 옵션의 유형(이 클래스의 경우SO_FocusRect ).

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

StyleOptionVersion도 참조하십시오 .

enum QStyleOptionFocusRect::StyleOptionVersion

이 열거형은 스타일 옵션의 버전에 대한 정보를 담기 위해 사용되며, 각 ` QStyleOption ` 하위 클래스에 대해 정의됩니다.

상수상수상수값
QStyleOptionFocusRect::Version11

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

StyleOptionType도 참조하십시오 .

멤버 함수 문서

QStyleOptionFocusRect::QStyleOptionFocusRect()

QStyleOptionFocusRect 객체를 생성하고, 멤버 변수들을 기본값으로 초기화합니다.

QStyleOptionFocusRect::QStyleOptionFocusRect(const QStyleOptionFocusRect &other)

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

[noexcept default] QStyleOptionFocusRect &QStyleOptionFocusRect::operator=(const QStyleOptionFocusRect &)

other 를 이 QStyleOptionFocusRect 인스턴스에 복사 할당합니다.

멤버 변수 설명

QColor QStyleOptionFocusRect::backgroundColor

이 변수는 포커스 사각형이 그려지는 배경색을 저장합니다.

기본값은 RGB 값이 (0, 0, 0)인 유효하지 않은 색상입니다. 유효하지 않은 색상이란 해당 창 시스템에 제대로 설정되지 않은 색상을 말합니다.

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