QSettings appRegSettings("HKEY_CURRENT_USER\\Software\\Classes\\" + qAppName() + "\\shell\\open\\command", QSettings::NativeFormat);appRegSettings.setValue("Default", "\"" + QDir::toNativeSeparators(qApp->applicationFilePath()) + "\" \"%1\"");QSettings mp3Settings("HKEY_CURRENT_USER\\Software\\Classes\\.mp3", QSettings::NativeFormat);mp3Settings.setValue("Default", qAppName());
QSettings settings("HKEY_CLASSES_ROOT", QSettings::NativeFormat); settings.setValue(".uod/.", "MTRealization"); settings.setValue("MTRealization/.", tr("Реализация МТ")); settings.setValue("MTRealization/shell/open/command/.", "\"" + QDir::toNativeSeparators(QCoreApplication::applicationFilePath()) + "\"" + " \"%1\""); settings.setValue("MTRealization/DefaultIcon/.", QString("%1,1").arg(QDir::toNativeSeparators(QCoreApplication::applicationFilePath())));