Hi,

my logic reaches the end. I have a bit mask defined and want following behavior when comparing FlagI and FlagII:
Qt Code:
  1. enum Flag
  2. {
  3. A = 0x00000001,
  4. B = 0x00000002,
  5. C = 0x00000004,
  6. D = 0x00000008
  7. };
  8. Q_DECLARE_FLAGS(Flags, Flag)
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. //
  2. A B C D
  3. ------------------
  4. FlagI 1 0 0 1
  5. FlagII 0 1 0 1
  6. ------------------
  7. 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