[Development] unique_ptr and Qt, Take 2

Allan Sandfeld Jensen kde at carewolf.com
Sat May 4 09:06:39 CEST 2019

On Samstag, 4. Mai 2019 00:43:10 CEST Thiago Macieira wrote:
> On Friday, 3 May 2019 13:00:52 PDT Иван Комиссаров wrote:
> > Which should be considered bad practice and banned on an API level
> No way.
> Are you going to forbid creation of QFile on the stack?

Perhaps QFile shouldn't be the same kind of base object type as QWidgets? Or 
not use the same smart pointer.

Though even making QWidgets not allowed on the stack, while sensible, would 
break a many of our tests, where we "abuse" that it is technically possible in 
simple cases.


More information about the Development mailing list