QFlag Class

QFlag 클래스는 QFlags 에 대한 헬퍼 데이터 유형입니다. 더 보기...

헤더: #include <QFlag>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core

공용 함수

QFlag(int value)
QFlag(short value)
QFlag(uint value)
QFlag(ushort value)
int operator int() const
uint operator uint() const

자세한 설명

함수 오버로딩과 타입 변환을 제외하면 일반 int 과 동일합니다. 애플리케이션에서 이 클래스를 사용할 필요는 없습니다.

QFlags참조하세요 .

멤버 함수 문서

[constexpr noexcept] QFlag::QFlag(int value)

value 을 저장하는 QFlag 객체를 생성합니다.

[constexpr noexcept] QFlag::QFlag(short value)

value 을 저장하는 QFlag 객체를 생성합니다.

[constexpr noexcept] QFlag::QFlag(uint value)

value 을 저장하는 QFlag 객체를 생성합니다.

[constexpr noexcept] QFlag::QFlag(ushort value)

value 을 저장하는 QFlag 객체를 생성합니다.

[constexpr noexcept] int QFlag::operator int() const

QFlag 객체에 저장된 값을 반환합니다.

[constexpr noexcept] uint QFlag::operator uint() const

QFlag 객체에 저장된 값을 반환합니다.

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