Using Qt Creator C++ 11, nullptr is keyworded? Open your .pro file from inside QtCreator and add this QMAKE_CXXFLAGS += -std=c++0x