Hello everybody. I recently started learning the Qt framework. I wrote programs on Qt inherited from QWidget (for practice), and now I am already learning QMainWindow (Main Window). To use signals and slots, I have to connect Q_OBJECT, but for some reason he swears at him. If Q_OBJECT is removed, the error disappears and the program is compiled without errors. Errors: 
|
1 answer
1) Verify that all functions declared as slots have an implementation
2) If this does not help, run qmake manually (in the top menu, build -> run qmake)
- I try, thank you - Emmanuel
- The second method helped. Thank you very much! - Emmanuel
- @Emmanuel on the left in the response header there is an arrow and a tick for this - Bearded Beaver
- thanks, did not know - Emmanuel
|