Hi,
my logic reaches the end. I have a bit mask defined and want following behavior when comparing FlagI and FlagII:
enum Flag
{
A = 0x00000001,
B = 0x00000002,
C = 0x00000004,
D = 0x00000008
};
Q_DECLARE_FLAGS(Flags, Flag)
enum Flag
{
A = 0x00000001,
B = 0x00000002,
C = 0x00000004,
D = 0x00000008
};
Q_DECLARE_FLAGS(Flags, Flag)
To copy to clipboard, switch view to plain text mode
//
A B C D
------------------
FlagI 1 0 0 1
FlagII 0 1 0 1
------------------
Result 0 1 0 0
//
A B C D
------------------
FlagI 1 0 0 1
FlagII 0 1 0 1
------------------
Result 0 1 0 0
To copy to clipboard, switch view to plain text mode
But I can't figure it out since I am unable to distinguish between (FlagI-A:0 FlagII-A:1) and (FlagI-A:1 FlagII-A:0). Is that possible?
Thanks
Lykurg
Bookmarks