QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TEMPLATE = app TARGET = MyBox INCLUDEPATH += . # Input HEADERS += mybox.h SOURCES += main.cpp mybox.cpp