Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
QtQml: No such file or directory
fireyyouth last edited by
I am using Ubuntu 16.04. I got Qt from APT. I wrote a cpp file that includes <QtQml>, it turned out that g++ can't find this file, while other files like QtGui, QtCore can be found.
@fireyyouth Can you check your Qt install's directory with something like
find /path/to/qt -iname "*qtqml*"and see if it find it? It's possible the package from apt did not include QML although that seems unlikely.
You can of course install multiple versions of Qt so you could just install one with the installer (or build one yourself) and that will definitely have QML in it.
Hi and welcome to devnet,
Did you add the corresponding
QT +=statements in your .pro file ?