Hi
I am very beginer to the Qt development and i faced problem
I have a log file and it had some data in that file then i want to display in that data in my listView i try but still i havent proper way to do that this is my code
model = new QStringListModel();
//Read data from file in the system
QFile file("File path");
QTextStream in(&file);
while(!in.atEnd()){
QString line = in.readLine();
QList<QStandardItem *> items;
QStringList fields = line.split(">");
model->setStringList(fields);
}
ui.listView->setModel(model);
there are no errors but no data display in a listview please anyone have better idea about that please kindly help me to solve that problem
Thanks
Diluka
Edit: please put @ tags around code sections; Andre
↧