Hello everyone,

I have a problem with loading the data from the file into the control tableview. For now, I created a function that has to load data from a file.
Qt Code:
  1. void example::load(const QString &file)
  2. {
  3. QString p(":/folder/file/");
  4.  
  5.  
  6. p+=file;
  7. QFile filein(p);
  8. if (!filein.open(QFile::ReadOnly))
  9. qDebug(Error couldn't open file: %s",qPrintable(file));
  10. double p1;
  11.  
  12. QTextStream stream(&filein);
  13. while (!filein.atEnd())
  14. {
  15. stream>>p1;
  16.  
  17. }
  18. stream.readLine() ;
  19. }
To copy to clipboard, switch view to plain text mode 
Tableview indicator added to the form, and now i want the data to be loaded when you start the application.