[Development] Qt 5 Beta - undefined reference to QWidget

Fabian.Gruber at conti-engineering.com Fabian.Gruber at conti-engineering.com
Mon Sep 10 10:55:21 CEST 2012


Hi,

I'm testing Qt 5 Beta with a simple Qt Widget Project on Linux.
Mainly it's the one you get when creating a new project without any forms.
In the .pro file I added widgets, qml and quick to the QT-variable.

When compiling the project I get the following errors:

moc_mainwindow.o:(.data.rel.ro._ZTV10MainWindow[vtable for 
MainWindow]+0xc4): undefined reference to `QWidget::styleChange(QStyle&)'
moc_mainwindow.o:(.data.rel.ro._ZTV10MainWindow[vtable for 
MainWindow]+0xc8): undefined reference to `QWidget::enabledChange(bool)'
moc_mainwindow.o:(.data.rel.ro._ZTV10MainWindow[vtable for 
MainWindow]+0xcc): undefined reference to `QWidget::paletteChange(QPalette 
const&)'
moc_mainwindow.o:(.data.rel.ro._ZTV10MainWindow[vtable for 
MainWindow]+0xd0): undefined reference to `QWidget::fontChange(QFont 
const&)'
moc_mainwindow.o:(.data.rel.ro._ZTV10MainWindow[vtable for 
MainWindow]+0xd4): undefined reference to 
`QWidget::windowActivationChange(bool)'
moc_mainwindow.o:(.data.rel.ro._ZTV10MainWindow[vtable for 
MainWindow]+0xd8): undefined reference to `QWidget::languageChange()'

Any idea on how to fix it?

Best regards

Fabian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120910/81552a9a/attachment.html>


More information about the Development mailing list