PDA

View Full Version : First time with QT: error: QQmlApplicationEngine: No such file or directory



daverzx1
5th December 2018, 00:49
Hi there everyone. I am new here.

I am using a Raspberry Pi 3 B+ with the Raspbian Stretch version of Linux. I will be using QT 5.7.1. I am starting up a simple blank GUI application. I get the following issue:

/home/pi/QTProgramming/QT_Test02/main.cpp:2: error: QQmlApplicationEngine: No such file or directory

The red underlined portion of the main.cpp file is #include <QQmlApplicationEngine>

I have searched for this error many times on the Google search engine and came up with no solution. It is probably because I just don't now this application yet. Please let me know what I can do to get past this.


- daverzx1 ( Dave )

ChrisW67
19th December 2018, 09:16
/home/pi/QTProgramming/QT_Test02/main.cpp:2: error: QQmlApplicationEngine: No such file or directory


Does your QMake PRO file contain this?


QT += qml

In recent documentation every class has this information at the top of its page: QQmlApplicationEngine (http://doc.qt.io/qt-5/qqmlapplicationengine.html)