# qt creator compilation error with instruction <QtQuickWidgets/QQuickWidget>

• Good morning.
Unfortunately I do not speak English, sorry (I translated this message with the google translator).
In a trivial mainwindow.h generated automatically with qt creator, as soon as I insert the #include <QtQuickWidgets/QQuickWidget> statement, the compilation crashes with the following messages. How can I fix it? Thank you.

• @bvox123
add `QT += quickwidgets` to your .pro file.
Don't forget to rerun qmake.