Consider such code:
Qt Code:
  1. QVector<int> v;
  2. ...
  3. v.append( v[0] );
To copy to clipboard, switch view to plain text mode 
What will happen if realloc() moves the data?