No, the list clears its contents and the content is pointers, not objects behind them. You can use qDeleteAll() to clear objects behind the pointers:
Qt Code:
QList<SomeStruct*> list; // ... qDeleteAll(list);To copy to clipboard, switch view to plain text mode





Reply With Quote
Bookmarks