Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
Raspberry Pi 4B qtcreator error QGuiApplication not found
I have raspberry Pi 4 B with 2021-05-07-raspios-buster-armhf-full , os installed in SD card
Further i have installed Qt with following commands after
sudo apt-get install qt5-default
sudo apt-get install qtcreator
i launch qtcreator from terminal and select Qt Quick application empty
Then in main.cpp i find
QGuiApplication not found
QQmlApplicationEngine not found
@MathewV Did you include QGuiApplication and QQmlApplicationEngine header files?
You also need "QT += gui" in your pro file.
For QQmlApplicationEngine you also need QT += qml in pro file.
Yes sir, since I have selected Qt Quick application empty and clicked on "next " as the buttons followed
the header where included by default in main.cpp
and i inserted
QT += qui
QT += qml
in pro file
When i launch qtcreator from terminalopen qmain.cpp file, I get the warning
This file is not part of any projects,
and there are red circle markers along the left border of the code right from
This file is not part of any projects
You have to open the PROJECT file, not cpp. It's the file with.pro extension.
but still i was getting error of Unknown module(s) in QT: quick qml
then in terminal i executed
sudo apt-get install qtdeclarative5-dev
rebooted the RPi
From terminal window executed qtcreator
Opened my recent project and by Gods grace no error
Thank you @jsulm for your support, God Bless You