HEADERS = delegate.h SOURCES = delegate.cpp \ main.cpp # install target.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/spinboxdelegate sources.files = $$SOURCES $$HEADERS *.pro sources.path = $$[QT_INSTALL_EXAMPLES]/qtbase/itemviews/spinboxdelegate INSTALLS += target sources QT += widgets simulator: warning(This example might not fully work on Simulator platform)