My structure is such
QStringList list;
list << "Hello" << "world" << "Blah" << "Blah ;
QStringListModel *model = new QStringListModel;
model->setStringList(list);
QListView *view = new QListView(this);
view->setModel(model);
Now I want the list not to be edited in my GUI.
source
share