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
EditWindow.h
#include <Qsci/qsciscintilla.h>
#include <Qsci/qscilexer.h>
class EditWindow :
public QsciScintilla
{
Q_OBJECT
public:
~EditWindow( );
private:
QString mFileName;
/**< The file name with the absolute path.*/ QsciLexer *mLexer; /**< Lexer used by scintilla. It depends of the type of file*/
};
EditWindow.cpp
#include "EditWindow.h"
: QsciScintilla( parent )
{
mFile = filename;
............
}
EditWindow.h
#include <Qsci/qsciscintilla.h>
#include <Qsci/qscilexer.h>
class EditWindow :
public QsciScintilla
{
Q_OBJECT
public:
EditWindow( QWidget *parent, const QString &filePath = "" );
~EditWindow( );
private:
QString mFileName; /**< The file name with the absolute path.*/
QsciLexer *mLexer; /**< Lexer used by scintilla. It depends of the type of file*/
};
EditWindow.cpp
#include "EditWindow.h"
EditWindow::EditWindow( QWidget *parent, const QString &filename )
: QsciScintilla( parent )
{
mFile = filename;
............
}
To copy to clipboard, switch view to plain text mode
If somebody know or have an idea of how fix this
Bookmarks