title: Why do INSERT and DELETE screw up QTableView (Qt, C++, sqlite)?
body: <p>After setting an INSERT or DELETE query on <code>QSqlQueryModel</code>, my <code>QTableView</code> becomes screwed up. For example I hid the ID column by calling <code>view-&gt;hideColumn(ID);</code> but after an INSERT or DELETE the ID column becomes visible.</p>
  
  <p>How can I automatically reset my view to the previous settings in these cases?</p>