I m writing a function in which I take QList<QString> as argument and after manipulating returns the same.

Qt Code:
  1. //Header File
  2.  
  3. #include <QtGui/QMainWindow>
  4. #include <qlist.h>
  5. #include <string.h>
  6.  
  7. class MainWindow : public QMainWindow
  8. {
  9.  
  10. Q_OBJECT
  11.  
  12. public:
  13. MainWindow(QWidget *parent = 0);
  14. ~MainWindow();
  15. QList GetArray(QList<QString> final);
  16. };
  17.  
  18.  
  19. //Source file
  20.  
  21. QList<QString> MainWindow::GetArray(QList final)
  22. {
  23. QList<QString> finalList;
  24. //finalList manipulating code
  25. return finalList;
  26.  
  27. }
To copy to clipboard, switch view to plain text mode 

but when I compile ,it gives me following errors

Qt Code:
  1. In file included from mainwindow.cpp:1:
  2. mainwindow.h:49: error: `QList' does not name a type
  3. mainwindow.cpp: At global scope:
  4. mainwindow.cpp:338: error: `QList<QString> MainWindow::GetArray' is not a static
  5. member of `class MainWindow'
  6. mainwindow.cpp:338: error: missing template arguments before "final"
  7. mainwindow.cpp:339: error: expected `,' or `;' before '{' token
  8. mingw32-make[1]: *** [tmp/obj/debug_shared/mainwindow.o] Error 1
  9. mingw32-make[1]: Leaving directory `D:/Qt/4.4.3/examples/widgets/ASystem'
  10. mingw32-make: *** [debug-all] Error 2
To copy to clipboard, switch view to plain text mode