PDA

View Full Version : elastic nodes example



sajis997
3rd August 2011, 12:08
Hello forum,

I believe most of you have gone through the elastic node example. I trying to make some changes to the existing by including the signal and slot to serve my customized purpose.
Among the additional stuff i have subclassed the Node class from the QObject and included the Q_OBJECT macro. But i get the linker error as follows:




/media/chole_/QtDemo/examples/graphicsview/elasticnodes/node.cpp:19: error: undefined reference to `vtable for Node'



Any hint to resolve the issue?


Regards
Sajjad

stampede
3rd August 2011, 13:02
Try to run qmake and build the project again, this is often caused by missing moc code for QObject-based class.

sajis997
3rd August 2011, 15:08
Try to run qmake and build the project again, this is often caused by missing moc code for QObject-based class.

Thanks , it works now!