I have a QList with a class, and have this error:

Qt Code:
  1. C:/Qt4Examples/Matematica/calculadora.cpp:14: error: insufficient contextual information to determine type
To copy to clipboard, switch view to plain text mode 

My class is:


Qt Code:
  1. class ComplexData
  2. {
  3.  
  4. public:
  5. ComplexData();
  6. ComplexData(const ComplexData &);
  7. virtual ~ComplexData();
  8.  
  9. ComplexData &operator=(const ComplexData & ); // Right side is the argument.
  10.  
  11. QString StrFuncao;
  12. double real;
  13. double imag;
  14. ..............
  15.  
  16. void SetNumero(double);
  17. //void SetNumero(Complexo);
  18. void SetNumero(double, double);
  19. void SetNumeroVar(double);
  20. .................
  21.  
  22. };
To copy to clipboard, switch view to plain text mode 

My list, defined inside another class:

Qt Code:
  1. ......
  2. private:
  3. QList<ComplexData> Pilha();
  4. .......
To copy to clipboard, switch view to plain text mode 

I get the errors with basic QList functions:

Qt Code:
  1. ComplexData xx;
  2.  
  3. Pilha.append(xx);
  4. .......
  5. Pilha.clear();
To copy to clipboard, switch view to plain text mode 

Any ideas to solve this errors ?????

Thanks