Hi,
my logic reaches the end. I have a bit mask defined and want following behavior when comparing FlagI and FlagII:Code:
enum Flag { A = 0x00000001, B = 0x00000002, C = 0x00000004, D = 0x00000008 }; Q_DECLARE_FLAGS(Flags, Flag)
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?Code:
// A B C D ------------------ FlagI 1 0 0 1 FlagII 0 1 0 1 ------------------ Result 0 1 0 0
Thanks
Lykurg