Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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.
    0_1499322369020_Schermata del 2017-07-06 08-14-26.png


  • Moderators

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


Log in to reply