The first warning/Error I see is…QtGui/QApplication: No such file or directoryWhich I solved by changing the include to #include <QGuiApplication>ui