Tomáš Navara Tomáš Navara - 1 year ago 106
C++ Question

Why is there no deleteLater in QByteArray?

I have a

pointer and I wish to delete it. I was hoping for the
function which is described here and is part of
. This is because I wish to delete the array in another thread than the one where I created it in.

Why this function does not exist on child class

Answer Source

QByteArray doesn't inherit QObject, there is no deleteLater(), there is no thread affinity and it shouldn't really matter where you delete it, just make sure you don't end up with dangling pointers.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download