Hi everyone!
Got this error message: QSettings: failed to set subkey
The message is clear, but I don not have subkeys..
What else can it be?
Thank you!
Hi everyone!
Got this error message: QSettings: failed to set subkey
The message is clear, but I don not have subkeys..
What else can it be?
Thank you!
After some time I figured out that the problem is in setValue method:
Qt Code:
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
Last edited by Mint87; 26th April 2013 at 14:10.
beginGroup() creates a subkey.
Bookmarks