QFlag 类

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

详细描述

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 引入。