Qt5开发问题汇总

没有examples

apt-get install qtbase5-examples


QML module not found(QtQuick.Controls)

apt-get install qml qmlscene

apt-get install qtdeclarative5-dev

apt -y install qml-module-qtquick-controls

apt -y install qml-module-qtquick-controls2


QML module not found(QtQuick.Dialogs)

apt install qml-module-qtquick-dialogs


"Qt.labs.folderlistmodel" is not installed

apt install qml-module-qt5-labs-folderlistmodel


"Qt.labs.settings" is not installed

apt install qml-module-qt5-labs-settings


undefined reference to `vtable for Cxxx'

在新建Class时没有继承自QObject时会出现这样的问题.使用moc Cxxx.cpp生成Meta后能解决问题 [Meta Object Compiler]


推荐阅读更多精彩内容