does QList copy the element?
or does it keep only "the memory address -- reference"?
(so do i need to free my "pointer" element?)
eg.
Qt Code:
QList list; Element *e; while (query.next()) { e = new Element(); ... list << *e; delete e; // required? }To copy to clipboard, switch view to plain text mode
Bookmarks