이 페이지에서

QStyleOptionRubberBand Class

QStyleOptionRubberBand 클래스는 고무줄을 그리는 데 필요한 매개변수를 정의하는 데 사용됩니다. 더 보기...

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

공개 유형

enum StyleOptionType { Type }
enum StyleOptionVersion { Version }

공개 함수

QStyleOptionRubberBand()
QStyleOptionRubberBand(const QStyleOptionRubberBand &other)
QStyleOptionRubberBand &operator=(const QStyleOptionRubberBand &)

공개 변수

bool opaque
QRubberBand::Shape shape

상세 설명

QStyleOptionRubberBand는 QStyle 함수가 QRubberBand 를 그리는 데 필요한 모든 정보를 포함합니다.

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

QStyleOption 및 QRubberBand도 참조하십시오 .

멤버 유형 설명

enum QStyleOptionRubberBand::StyleOptionType

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

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

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

StyleOptionVersion도 참조하십시오 .

enum QStyleOptionRubberBand::StyleOptionVersion

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

상수상수설명
QStyleOptionRubberBand::Version11

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

StyleOptionType도 참조하십시오 .

멤버 함수 문서

QStyleOptionRubberBand::QStyleOptionRubberBand()

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

QStyleOptionRubberBand::QStyleOptionRubberBand(const QStyleOptionRubberBand &other)

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

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

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

멤버 변수 문서

bool QStyleOptionRubberBand::opaque

이 변수는 고무줄을 불투명 스타일로 그려야 하는지 여부를 나타냅니다.

기본값은 true입니다.

QRubberBand::Shape QStyleOptionRubberBand::shape

이 변수는 고무줄의 모양을 저장합니다.

기본 모양은 QRubberBand::Line 입니다.

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