Ok, many thanks. Now it is clear (just need for me not to be lazy and to
take and to read the documentation :) ).
05.08.2015 21:35, Matt Broadstone пишет:
On Wed, Aug 5, 2015 at 2:27 PM, Denis Shienkov
mailto:denis.shien...@gmail.com>> wrote:
Hi all,
seems that QPointer::clear() does
Hi all,
seems that QPointer::clear() does not work as expected (for me).
E.g. I assume that QPointer:clear() deletes the internal object ... but
this not happens..
So, what is way to delete an object (1 or 2)?
QPointer p = new QObject();
1) delete p;
2) delete p.data();
BR,
Denis
_