QStyleOptionFrame Class
QStyleOptionFrame 클래스는 프레임을 그리기 위한 매개 변수를 설명하는 데 사용됩니다. 더 보기...
Header: | #include <QStyleOptionFrame> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
상속합니다: | QStyleOption |
공용 유형
enum | FrameFeature { None, Flat, Rounded } |
flags | FrameFeatures |
enum | StyleOptionType { Type } |
enum | StyleOptionVersion { Version } |
공용 함수
QStyleOptionFrame() | |
QStyleOptionFrame(const QStyleOptionFrame &other) |
공용 변수
QStyleOptionFrame::FrameFeatures | features |
QFrame::Shape | frameShape |
int | lineWidth |
int | midLineWidth |
상세 설명
QStyleOptionFrame은 QFrame, QGroupBox, QLineEdit, QMenu 를 포함한 여러 내장 Qt 위젯을 그리는 데 사용됩니다.
성능상의 이유로 멤버 함수는 거의 없으며 멤버 변수에 대한 액세스는 직접적으로 (즉, .
또는 ->
연산자를 사용하여) 이루어집니다. 이렇게 하면 구조가 사용하기 쉽고 스타일 함수에 사용되는 매개변수라는 점을 강조할 수 있습니다.
QStyleOptionFrame 클래스의 인스턴스에는 type SO_Frame 및 version 3이 있습니다.
이 유형은 QStyleOption, 그 하위 클래스 및 qstyleoption_cast()에서 스타일 옵션의 유형을 결정하기 위해 내부적으로 사용됩니다. 일반적으로 자체 QStyleOption 서브클래스와 자체 스타일을 만들려는 경우가 아니라면 이에 대해 걱정할 필요가 없습니다. 이 버전은 호환성을 깨지 않고 확장을 구현하기 위해 QStyleOption 서브클래스에서 사용됩니다. qstyleoption_cast ()를 사용하는 경우 일반적으로 확인할 필요가 없습니다.
QStyleOption 를참조하세요 .
멤버 유형 문서
열거형 Q스타일옵션프레임::프레임기능
플래그 Q스타일옵션프레임::프레임기능
이 열거형은 프레임이 가질 수 있는 다양한 유형의 기능을 설명합니다.
Constant | 값 | 설명 |
---|---|---|
QStyleOptionFrame::None | 0x00 | 일반 프레임을 나타냅니다. |
QStyleOptionFrame::Flat | 0x01 | 평면 프레임을 나타냅니다. |
QStyleOptionFrame::Rounded | 0x02 | 둥근 프레임을 나타냅니다. |
FrameFeatures 유형은 QFlags<FrameFeature>에 대한 typedef입니다. FrameFeature 값의 OR 조합을 저장합니다.
enum QStyleOptionFrame::StyleOptionType
이 열거형은 스타일 옵션의 유형에 대한 정보를 저장하는 데 사용되며 각 QStyleOption 하위 클래스마다 정의됩니다.
Constant | 값 | 설명 |
---|---|---|
QStyleOptionFrame::Type | SO_Frame | 제공되는 스타일 옵션의 유형입니다(이 클래스의 경우SO_Frame ). |
이 유형은 QStyleOption, 그 하위 클래스 및 qstyleoption_cast()에서 스타일 옵션의 유형을 결정하기 위해 내부적으로 사용됩니다. 일반적으로 자체 QStyleOption 하위 클래스와 자체 스타일을 만들려는 경우가 아니라면 이에 대해 걱정할 필요가 없습니다.
StyleOptionVersion 를참조하세요 .
enum QStyleOptionFrame::StyleOptionVersion
이 열거형은 스타일 옵션의 버전에 대한 정보를 저장하는 데 사용되며 각 QStyleOption 서브클래스에 대해 정의됩니다.
Constant | 값 | 설명 |
---|---|---|
QStyleOptionFrame::Version | 1 | 3 |
이 버전은 QStyleOption 하위 클래스에서 호환성을 깨지 않고 확장을 구현하는 데 사용됩니다. qstyleoption_cast ()를 사용하는 경우 일반적으로 확인할 필요가 없습니다.
StyleOptionType 를참조하세요 .
멤버 함수 문서
QStyleOptionFrame::QStyleOptionFrame()
멤버 변수를 기본값으로 초기화하여 QStyleOptionFrame을 생성합니다.
QStyleOptionFrame::QStyleOptionFrame(const QStyleOptionFrame &other)
other 스타일 옵션의 복사본을 생성합니다.
멤버 변수 문서
QStyleOptionFrame::FrameFeatures QStyleOptionFrame::features
이 변수는 이 프레임을 설명하는 피처의 비트 단위 OR을 보유합니다.
FrameFeature 를참조하세요 .
QFrame::Shape QStyleOptionFrame::frameShape
이 속성은 프레임의 프레임 모양 값을 보유합니다.
QFrame::frameShape 를참조하세요 .
int QStyleOptionFrame::lineWidth
이 변수는 프레임을 그리기 위한 선 너비를 저장합니다.
기본값은 0입니다.
QFrame::lineWidth 를참조하세요 .
int QStyleOptionFrame::midLineWidth
이 변수는 프레임을 그리기 위한 중간 선 너비를 보유합니다.
일반적으로 가라앉거나 올라간 프레임을 그릴 때 사용됩니다.
기본값은 0입니다.
QFrame::midLineWidth 를참조하십시오 .
© 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.