QFlag 類

The QFlag class is a helper data type for QFlags . 更多...

頭: #include <QFlag>
qmake: QT += core

公共函數

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

詳細描述

The QFlag class is a helper data type for QFlags .

它相當於純 int ,除瞭函數重載和類型轉換方麵。應該從不需要使用此類在您的應用程序中。

另請參閱 QFlags .

成員函數文檔編製

QFlag:: QFlag ( int value )

構造 QFlag object that stores the given value .

QFlag:: QFlag ( uint value )

構造 QFlag object that stores the given value .

該函數在 Qt 5.3 引入。

QFlag:: QFlag ( short value )

構造 QFlag object that stores the given value .

該函數在 Qt 5.3 引入。

QFlag:: QFlag ( ushort value )

構造 QFlag object that stores the given value .

該函數在 Qt 5.3 引入。

QFlag:: operator int () const

Returns the value stored by the QFlag 對象。

QFlag:: operator uint () const

Returns the value stored by the QFlag 對象。

該函數在 Qt 5.3 引入。