Guest User

Untitled

a guest
Jan 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. class Widget : public QWidget
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. Widget(QWidget* parent);
  7.  
  8. protected:
  9. void paintEvent(QPaintEvent *e);
  10. private:
  11. };
  12.  
  13. void keyPressEvent(QKeyEvent *e);
  14.  
  15. 1>------ Build started: Project: lol, Configuration: Release Win32 ------
  16. 1>Build started 25/09/2012 21:04:40.
  17. 1>InitializeBuildStatus:
  18. 1> Creating "Releaselol.unsuccessfulbuild" because "AlwaysCreate" was specified.
  19. 1>CustomBuild:
  20. 1> Moc'ing lol.h...
  21. 1>ClCompile:
  22. 1> All outputs are up-to-date.
  23. 1> moc_lol.cpp
  24. 1> lol.cpp
  25. 1> main.cpp
  26. 1> Generating Code...
  27. 1>lol.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall lol::mousePressEvent(class QMouseEvent *)" (?mousePressEvent@lol@@MAEXPAVQMouseEvent@@@Z)
  28. 1>C:UsersVTMDocumentsVisual Studio 2010ProjectsTCWin32Release\lol.exe : fatal error LNK1120: 1 unresolved externals
  29. 1>
  30. 1>Build FAILED.
  31. 1>
  32. 1>Time Elapsed 00:00:04.68
  33. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  34.  
  35. void Widget::keyPressEvent(QKeyEvent *e){ QWidget::keyPressEvent(e);}
Add Comment
Please, Sign In to add comment