After some time I figured out that the problem is in setValue method:
for(int i=0;i<length();i++)
{
documents<<at(i);
}
settings.beginGroup("RecentFiles");
settings.setValue("FileList",documents); // the error occurs here
settings.endGroup();
QStringList documents;
for(int i=0;i<length();i++)
{
documents<<at(i);
}
settings.beginGroup("RecentFiles");
settings.setValue("FileList",documents); // the error occurs here
settings.endGroup();
To copy to clipboard, switch view to plain text mode
It has to do smth with QStringList.
Before QStringList documents; was declared in h file, but know it works
Bookmarks