I have this code that crashes on endResetModel. I use static build and the crash only happens on some dude's machine, couldn't reproduce it on my 3 different machines whatever I tried. Is there something wrong with this code that I don't see? The data list is very small.
beginResetModel();
getDataList().clear();
for (QVariantList record : recordList)
{
getDataList() << QPair<QString, int>(record.at(0).toString(), record.at(1).toInt());
}
endResetModel();
beginResetModel();
getDataList().clear();
for (QVariantList record : recordList)
{
getDataList() << QPair<QString, int>(record.at(0).toString(), record.at(1).toInt());
}
endResetModel();
To copy to clipboard, switch view to plain text mode
Bookmarks