QList and delete
14,971
You could use qDeleteAll:
qDeleteAll(lstMdls);
lstMdls.clear();
Comments
-
kiriloff about 2 years
I have a
QList
with pointers to objects with class typeModel
. I would like to delete appropriately thisQList
after it has being used. I know Qt philosophy is to avoid C-style memory management. How do Idelete
thisQList
?