Reputation: 13025
I'm using Qt 5.4 x86 on Windows 8.1 Pro x64. Following this example I'm trying to implement an ElidedLabel
class. Not sure what I'm doing wrong, but the code in the example itself is producing
error: undefined reference to `vtable for ElidedLabel'
What's wrong and how to fix it? I've checked the Qt 5.4 documentation of QFrame
and there is not a pure virtual function that needs to be defined.
Upvotes: 1
Views: 100
Reputation: 18514
moc
(Meta Object Compiler
) didn't preprocess your code, so you get this not very clear error.
Solution: try the Build > Run qmake
command from the menu. This command will run moc
and it will generate correct code for your class.
Upvotes: 3