AFAIK. If you add a file then make calls qmake first. Only when u add Q_OBJECT to the class do we need to call the qmake manually.
AFAIK. If you add a file then make calls qmake first. Only when u add Q_OBJECT to the class do we need to call the qmake manually.
We can't solve problems by using the same kind of thinking we used when we created them
PstdEr (23rd July 2013)
btw, there is a strange symbol (single quote) after "HEADERS" in the project file
I found the apostrophe too, happily quickly
I've been always executing `qmake && make` not to forget about the qmake.
Thanks for your posts!
This is good to know, I have been trying to run it after I add any new file regardless of of it Q_OBJECT-ed-ness. (although I tend to implement signals and slots heavily(maybe too much so!), so 80% of my new code is a Q_OBJECT...still good info!!! Thanks!)Originally Posted by sunil.thaha
Katrina
Missing Q_OBJECT in the class declaration also does lead to the same error: undefined reference to `MyThread::MySignal()'
PstdEr (23rd July 2013)
Bookmarks