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.
void example
::load(const QString &file
) {
p+=file;
if (!filein.
open(QFile::ReadOnly)) qDebug(Error couldn't open file: %s",qPrintable(file));
double p1;
QTextStream stream(&filein);
while (!filein.atEnd())
{
stream>>p1;
}
stream.readLine() ;
}
void example::load(const QString &file)
{
QString p(":/folder/file/");
p+=file;
QFile filein(p);
if (!filein.open(QFile::ReadOnly))
qDebug(Error couldn't open file: %s",qPrintable(file));
double p1;
QTextStream stream(&filein);
while (!filein.atEnd())
{
stream>>p1;
}
stream.readLine() ;
}
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.
Bookmarks