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:
  1. QList list;
  2. Element *e;
  3. while (query.next()) {
  4. e = new Element();
  5. ...
  6. list << *e;
  7. delete e; // required?
  8. }
To copy to clipboard, switch view to plain text mode