a specific key in QSettings. imagin this code:
QVariant QtUtil::getValue(QString organization, QString application, QString group, QString key)
{
QSettings settings(organization, application);
settings.beginGroup(group);
QVariant fKey = settings.value(key);
settings.endGroup();
return fKey;
}
It search for a key and return it's value. But i want to pass a key and return it's group. something like this:
QVariant QtUtil::getValue(QString organization, QString application, QString key)
{
QVariant group;
QSettings settings(organization, application);
// Search method that return gruoup related to a key.
return group;
}
How to achive it?
So if you had example/test you want to pass test to that function and it would return example ?
I think you had better find a new solution to your general problem.
Обсуждают сегодня