I want to write a QList to a file and I get this error:
Qt Code:
  1. c:/Qt/2009.04/qt/include/QtCore/../../src/corelib/io/qdatastream.h:252: error: no match for 'operator<<' in 's << (+l)->QList<T>::at [with T = Registro::alumData](i)'
To copy to clipboard, switch view to plain text mode 

In my registro.h I have this:
Qt Code:
  1. typedef struct curData{
  2. QString Nombre;
  3. QList <int> Notas;
  4. int Promedio;
  5. }cursoRegistro;
  6.  
  7. typedef struct alumData{
  8. QString Nombre;
  9. int Codigo;
  10. QList <cursoRegistro> Cursos;
  11. int Promedio;
  12. }alumnoRegistro;
  13.  
  14. QList <alumnoRegistro> Alumnos;
To copy to clipboard, switch view to plain text mode 

My function to save the file (in registro.cpp) is:

Qt Code:
  1. void Registro::guardarArchivo()
  2. {
  3. QString nombreArchivo = QFileDialog::getSaveFileName(this);
  4. if (nombreArchivo.isEmpty()) {
  5. return;
  6. }
  7.  
  8. QFile file(nombreArchivo);
  9. if (!file.open(QIODevice::WriteOnly)) {
  10. QMessageBox::information(this, tr("No se puede abrir archivo"), file.errorString());
  11. return;
  12. }
  13.  
  14. QDataStream out(&file);
  15. out << Alumnos;
  16. }
To copy to clipboard, switch view to plain text mode 

I'm a beginner.