[Development] The future of smart pointers in Qt API

Matthew Woehlke mwoehlke.floss at gmail.com
Fri Jan 31 16:23:38 CET 2020


On 31/01/2020 05.07, Vitaly Fanaskov wrote:
> We’ve been discussing for a while how Qt6 API can be improved with using 
> smart pointers. Recently we came into some conclusions and want to 
> discuss them with the community.
> 
> Smart pointers are for sure much better to use than raw pointers for 
> many reasons. They manage lifetime automatically, show ownership 
> semantic, and make code safer.

QObject already has these features since forever. How do you plan for
this to interact with existing lifetime and ownership management via
QObject?

-- 
Matthew


More information about the Development mailing list