Smart pointers require C ++ 11. Depending on your version of Qt:
Add CONFIG += c++11 to your .pro file if you have Qt5 and higher. He should include <memory> , as Simon mentioned.
If you have an earlier version than Qt5, try adding the following:
QMAKE_CXXFLAGS += -std=c++11
Andreas DM
source share