IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QFlag Class

The QFlag class is a helper data type for QFlags.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QFlag Class

  • Header: QFlag

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Core)

    target_link_libraries(mytarget PRIVATE Qt6::Core)

  • qmake: QT += core

Detailed Description

It is equivalent to a plain int, except with respect to function overloading and type conversions. You should never need to use this class in your applications.

See Also

See also QFlags

Member Function Documentation

 

[constexpr] QFlag::QFlag(int value)

Constructs a QFlag object that stores the value.

[default, since 5.3] QFlag::QFlag(uint value)

Constructs a QFlag object that stores the value.

This function was introduced in Qt 5.3.

[default, since 5.3] QFlag::QFlag(short value)

Constructs a QFlag object that stores the value.

This function was introduced in Qt 5.3.

[default, since 5.3] QFlag::QFlag(ushort value)

Constructs a QFlag object that stores the value.

This function was introduced in Qt 5.3.

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

Returns the value stored by the QFlag object.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+