I have the following code:
Qt Code:
QList<QObject *> m_devices; m_devices.append(new Data::Device(info));To copy to clipboard, switch view to plain text mode
When do I call the method m_devices.clear() from QList, the allocated memory (new Data::Device(info)) will be free correctly or I need do delete one by one before?
Bookmarks