//QT下执行外部程序,比如打开帮助文档的方法
QProcess *process = new QProcess;
process->start("hh.exe aaa.chm");
//QT读写注册表
QString path="HKEY_CURRENT_USER//Software//MicroSoft//Windows//CurrentVersion//Explorer//Shell Folders";
QSettings settings(path, QSettings::NativeFormat);
//settings.setPath(QSettings::Format::NativeFormat, QSettings::SystemScope, "HKEY_LOCAL_MACHINE/Software");
QString s = (settings.value("Personal")).toString();
settings.setValue("test", "aaa");
QFileDialog::getOpenFileName(this, "", s);
QString path="HKEY_CURRENT_CONFIG//Software";
QSettings settings(path, QSettings::NativeFormat);
//settings.setPath(QSettings::Format::NativeFormat, QSettings::SystemScope, "HKEY_LOCAL_MACHINE/Software");
settings.setValue("size", size());
set
QT执行外部程序,读写注册表
最新推荐文章于 2023-12-26 15:41:42 发布