Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Widget : public QWidget
- {
- Q_OBJECT
- public:
- Widget(QWidget* parent);
- protected:
- void paintEvent(QPaintEvent *e);
- private:
- };
- void keyPressEvent(QKeyEvent *e);
- 1>------ Build started: Project: lol, Configuration: Release Win32 ------
- 1>Build started 25/09/2012 21:04:40.
- 1>InitializeBuildStatus:
- 1> Creating "Releaselol.unsuccessfulbuild" because "AlwaysCreate" was specified.
- 1>CustomBuild:
- 1> Moc'ing lol.h...
- 1>ClCompile:
- 1> All outputs are up-to-date.
- 1> moc_lol.cpp
- 1> lol.cpp
- 1> main.cpp
- 1> Generating Code...
- 1>lol.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall lol::mousePressEvent(class QMouseEvent *)" (?mousePressEvent@lol@@MAEXPAVQMouseEvent@@@Z)
- 1>C:UsersVTMDocumentsVisual Studio 2010ProjectsTCWin32Release\lol.exe : fatal error LNK1120: 1 unresolved externals
- 1>
- 1>Build FAILED.
- 1>
- 1>Time Elapsed 00:00:04.68
- ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
- void Widget::keyPressEvent(QKeyEvent *e){ QWidget::keyPressEvent(e);}
Add Comment
Please, Sign In to add comment