use 'CONFIG += c++11' in the project files