Thanks!

I have written this code:

Qt Code:
  1. namespace Test
  2. {
  3.  
  4. enum TState {
  5. ENone = 0x0,
  6. EPause = 0x1,
  7. EPlay = 0x2
  8. };
  9.  
  10. Q_DECLARE_FLAGS(TStates, TState)
  11.  
  12. }
  13.  
  14. Q_DECLARE_OPERATORS_FOR_FLAGS( Test::TStates )
  15.  
  16. class myClass
  17. {
  18. ...
  19. Test::TStates getState(){return state;}
  20. ...
  21. Test::TStates state;
To copy to clipboard, switch view to plain text mode 

¿How can I declare a QFlag inside the myClass class? Can you help me with an example?

Regards!