Hi,

take a look at qDeleteAll() function:

http://qt-project.org/doc/qt-5/qtalgorithms.html

Cheers

2014-08-06 3:50 GMT+06:00 Giuseppe D'Angelo <dange...@gmail.com>:
> On 5 August 2014 23:24, preeteesh kakkar <preeteesh.kak...@gmail.com> wrote:
>> Yes, you do need to delete them. You can keep them as scoped_ptr instead of
>> raw pointer.
>
> You can't use scoped / unique ptr inside of a Qt container because
> they're not copiable. A shared pointer works, though.
>
> --
> Giuseppe D'Angelo
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to