From 603d7a3827a44eb75c4c0ea4c55c6620f516b852 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Wed, 19 Apr 2023 21:02:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=AE=BE=E7=BD=AE=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VM-source/qemusetting.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VM-source/qemusetting.cpp b/VM-source/qemusetting.cpp index 08df2ed..f26744a 100644 --- a/VM-source/qemusetting.cpp +++ b/VM-source/qemusetting.cpp @@ -88,6 +88,12 @@ void QemuSetting::on_save_clicked() object.insert("VNC", ui->vncNumber->value()); object.insert("CPU", ui->cpuNumber->value()); qDebug() << QJsonDocument(object).toJson(); + // 读取配置文件 + QFile file(QDir::homePath() + "/.config/deepin-wine-runner/QemuSetting.json"); + file.open(QIODevice::WriteOnly); + file.write(QJsonDocument(object).toJson()); + file.close(); + QMessageBox::information(this, "提示", "保存完成!"); } void QemuSetting::on_cancel_clicked()