Quote Originally Posted by homerun4711 View Post
Qt Code:
  1. void AddressNew::setMap(QStandardItemModel* model)
  2.  
  3. QMap<QString, QString> map; //contains QStrings from QLineEdits
  4. QMapIterator<QString, QString> i(map);
  5. QList<QStandardItem*> rowList;
  6. QStandardItem *item = model->invisibleRootItem();
To copy to clipboard, switch view to plain text mode 
Well, now you've changed from getting the root item from 'test' to getting it from 'model', which is a parameter; 'test' now not being used. The problem is probably in calling code, which you haven't provided. May very well be exactly the same problem as before: invalid pointer.