Try running "qmake && make".
Try running "qmake && make".
oh yes, I've done that many times hoping I just needed a new Makefile, but no luck.
Aren't you missing the HEADERS variable from your .pro file?
Hmm. Everything works fine when I take out the Qobject subclass and macro, with the .pro file as it is. Is a HEADERS variable something additional that's needed when I create my own subclass with QOBJECT?
qmake scans header files for Q_OBJECT macro and when it finds one it adds a rule to the Makefile that such file should be processed with moc program. In other words, if you don't put your headers in HEADERS variable, moc won't be run and you will get "undefined reference to vtable" errors.Originally Posted by cbeall1
AWESOME! Problem solved. Thanks jacek!
I still get the warnings on /qucom_p as shown above. Are those something I need to be concerned about that could cause me trouble in the future?
http://www.qtcentre.org/forum/showthread.php?t=266Originally Posted by cbeall1
Bookmarks