I have used Boost::shared_ptr in my previous projects and now I want to find a smart-pointer in Qt which does the same/similar thing.
Since there are many smart-pointer classes in Qt I was wondering which one to use.
Is it QSharedPointer?
I have used Boost::shared_ptr in my previous projects and now I want to find
Share
You want
QSharedPointer. You’ll find a comparison of all the pointer classes offered by Qt in the detailed description ofQSharedPointer.