He probably missed to implement the writeToFile function from AddressWidget example

Qt Code:
  1. void AddressWidget::writeToFile(QString fileName)
  2. {
  3. QFile file(fileName);
  4.  
  5. if (!file.open(QIODevice::WriteOnly)) {
  6. QMessageBox::information(this, tr("Unable to open file"), file.errorString());
  7. return;
  8. }
  9.  
  10. QList< QPair<QString, QString> > pairs = table->getList();
  11. QDataStream out(&file);
  12. out << pairs;
  13. }
To copy to clipboard, switch view to plain text mode