![]() |
Scanframe Modular Application 0.1.0
|
Wrapper class to iterate over the flags set. More...
#include <qt_utils.h>
Classes | |
| class | Iterator |
Public Types | |
| using | EnumType = typename FlagsType::enum_type |
Public Member Functions | |
| FlagsIterator (FlagsType flags) | |
| Iterator | begin () const |
| Iterator | end () const |
Wrapper class to iterate over the flags set.
| QObjectType | QObject derived class where the QFlags type is declared in. |
| FlagsType | Optional since the argument in the constructor determines it. Usage is as follows: // QFlags class.
QDialogButtonBox::StandardButtons sbs{QDialogButtonBox::Help | QDialogButtonBox::Abort};
// Iterate over the set flags using the iterator helper class.
{
// Print the flag values in the output.
qDebug() << flagsMetaEnum<QDialogButtonBox, QDialogButtonBox::StandardButtons>().valueToKey(sb);
}
QMetaEnum flagsMetaEnum() Gets the QMetaEnum from a given in a QObject embedded Qt type. Definition qt_utils.h:182 |
| using sf::FlagsIterator< QObjectType, FlagsType >::EnumType = typename FlagsType::enum_type |
|
inlineexplicit |
|
inline |
|
inline |