Quote Originally Posted by mweber1488 View Post
I just started learning Qt and I have been working through the example on this page: http://doc.qt.nokia.com/4.7/gettingstartedqt.html
The problem is that when I get to sub classing QWidget I start getting the following linker errors:

notepad.cpp|3|undefined reference to `vtable for Notepad'|
obj\Debug\notepad.o:C:\programming\c\test\notepad. h|10|undefined reference to `Notepad::staticMetaObject'|

The code is exactly the same as the examples, I am using Qt 4.7.1 and codeblocks as the ide.
The moc output for notepad isn't getting linked in.