[Interest] Qt ownership model
Till Oliver Knoll
till.oliver.knoll at gmail.com
Tue Jun 7 09:54:15 CEST 2016
> Am 05.06.2016 um 14:49 schrieb Thiago Macieira <thiago.macieira at intel.com>:
>
>> Em sábado, 4 de junho de 2016, às 15:55:47 BRT, Антон Жилин escreveu:
>> 3. Widgets without a parent are usually used with QSharedPointer:
>> auto obj = QSharedPointer<MyObject>::create(...);
>> -- Not so great, it is verbose and does not line up with standard library
>
> All those class names and function names with capital letters don't line up
> with the standard library, so the argument is not accepted.
And that's why I /love/ Qt so much and would choose it anytime again over an API that_looks<and_feels> &*like_this();
A small performance penalty is always accepted, in exchange for readability and ease of use.
;)
Just my 0.02$
Cheers,
Oliver
More information about the Interest
mailing list