Can I serialize a QListWidget ?

Docs say QListWidgetItem is serializable, but dont mention Qlistwidget.
I try like this and get a error

Qt Code:
  1. QFile filelist("list.dat");
  2. if (filelist.open(QIODevice::ReadOnly))
  3. {
  4. QDataStream inlist(&filelist);
  5. inlist>>ui.listWidget; //error
  6. filelist.close();
  7. }
  8.  
  9. QFile filelist("list.dat");
  10. filelist.open(QIODevice::WriteOnly);
  11. QDataStream outlist(&filelist);
  12. outlist<<ui.listWidget;
  13. filelist.close();
To copy to clipboard, switch view to plain text mode 

error
Qt Code:
  1. D:/qt4examples/Matematica/mainwindow.cpp:168: error: no match for 'operator>>' in 'inlist >> ((Ui_MainWindowClass*)(((Ui::MainWindowClass*)((MainWindow*)this)) + 20u))->Ui_MainWindowClass::listWidget'
To copy to clipboard, switch view to plain text mode 

So do I have to serialize all QListWidgetItem items inside of a for() or is there a better way ?

Thank you