use qDeleteAll instead of manual iteration