I am trying to remind myself some C++, and also learn about Qt.
I am working on Windows. I have installed Qt (5.1.0), MinGW (g++ 4.6.2), Gnu Make (3.81).
I
The problem here is you appear to be using Visual Studio 2012 libraries for your mingw builds. You need to link to the mingw compiled Qt instead.
Add "greaterThan(QT_MAJOR_VERSION, 4): QT += widgets" into your .pro file