Details
-
Suggestion
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.9.1
-
None
Description
now QFlags use int type as storage,means that we can only declare up to 32 flags,when we need more than 32 flags, although we can define enumerations like this:
enum Option : quint64
{
Option1 = 0x1,
Option2 = 0x2,
…………
Option64 = 0x8000000000000000
};
But we can't use Q_DECLARE_FLAGS and Q_DECLARE_OPERATORS_FOR_FLAGS to define flags.
Attachments
Issue Links
- duplicates
-
QTBUG-111926 QFlags doesn't support large (> sizeof(int)) enums
-
- Closed
-
- is duplicated by
-
QTBUG-119620 Q_ENUM cannot contain LLONG_MAX
-
- Closed
-