QSettings settings("youorgname", "yoursystemname");settings.setValue("ToolOne/bin", "c:\PathToTool\toolone.exe");settings.setValue("ToolOne/icon", "c:\PathToTool\toolone.png");settings.setValue("ToolOne/title", "Первая утилита");
QSettings settings("youorgname", "yoursystemname");QStringList tools = settings.childGroups();foreach (const QString& tool, tools){ settings.beginGroup(tools); QAction *ac = new QAction(QIcon(settings.value("icon","defaultIconFile")),settings.value("title","Noname"),yourmenu); ac->setData(settings.value("bin","")); connect(ac,SIGNAL(triggered()),this,SLOT(onRun())); yourmenu->addAction(ac); settings.endGroup();}
void onRun(){ QObject* obj=QObject::sender(); if (QAction *ac=qobject_cast<QAction *>(obj)) { qDebug()<< ac->data().toString(); // здесь путь к вашей подпрограмме }}