[Interest] Why is this not working? Assign direct to QML (through setContextProperty) works, as function doesn't.

Lincoln Ramsay a1291762 at gmail.com
Fri Nov 9 03:59:48 CET 2012


On 09/11/12 12:56, Mark wrote:
> Ahh, i was really hoping for that to work! Sadly i was "welcomed" with
> this compiler error:
>
> pathmodel.o: In function `PathModel::PathModel(QObject*)':
> pathmodel.cpp:(.text+0x14): undefined reference to `vtable for PathModel'

You need to run qmake to regenerate the Makefile because moc didn't run 
(because the last time qmake ran, the Q_OBJECT macro wasn't there).

-- 
Link




More information about the Interest mailing list