Run qmake before building
To prevent failures on incremental builds, always run qmake before building, even though it takes more time. Go to Preferences > Build & Run > Qmake, and select Run qmake on every build.
See also How To: Build and Run and qmake Build Configuration.