hi,


I´m trying to use qsciscintilla in my project, i create a new class EditWindow that inherits from QsciScintilla.

Environment
Windows 7
MVS 2010 with qt add-in
Qt 4.8.0
QsciScintilla 2.6.1

When i compile my project i get this error
error LNK2001: sÃ*mbolo externo "public: static struct QMetaObject const QsciScintilla::staticMetaObject" (?staticMetaObject@QsciScintilla@@2UQMetaObject@@B ) sin resolver C:\...Editor\moc_EditWindow.obj
Here is my EditWindow class

Qt Code:
  1. EditWindow.h
  2.  
  3. #include <Qsci/qsciscintilla.h>
  4. #include <Qsci/qscilexer.h>
  5.  
  6. class EditWindow :
  7. public QsciScintilla
  8. {
  9. Q_OBJECT
  10.  
  11. public:
  12. EditWindow( QWidget *parent, const QString &filePath = "" );
  13. ~EditWindow( );
  14.  
  15. private:
  16. QString mFileName; /**< The file name with the absolute path.*/
  17. QsciLexer *mLexer; /**< Lexer used by scintilla. It depends of the type of file*/
  18. };
  19.  
  20. EditWindow.cpp
  21.  
  22. #include "EditWindow.h"
  23.  
  24.  
  25. EditWindow::EditWindow( QWidget *parent, const QString &filename )
  26. : QsciScintilla( parent )
  27. {
  28. mFile = filename;
  29. ............
  30. }
To copy to clipboard, switch view to plain text mode 

If somebody know or have an idea of how fix this