In my application i have to bind a list of array value in to list view control. so, I created like this and build successfully but it crash.
QString array_List[5]={"Delphi","Mobile","Dot Net","Java","Open Source"};
for(int i=0;i<5;i++)
{
list << array_List[i];
}
ui->list_View->setModel(new QStringListModel(list));
The problem is your are going out of your array.
Replace
with
I would prefer writing: