Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
You don't even need to modify the QT variable content based on your code. However, as @jsulm wrote, your SOURCES line is wrong.
QT
SOURCES
In any case it should rather be
QT += core gui SOURCES += sample.cpp
Casing is important.