-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmain.cpp
More file actions
33 lines (29 loc) · 977 Bytes
/
Copy pathmain.cpp
File metadata and controls
33 lines (29 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "Controls/kernel.h"
#include <QApplication>
#include <QDebug>
#include <QEvent>
#include <QDir>
#include <QStandardPaths>
#include <QFileDialog>
#include <QSettings>
#include "mainwindow.h"
#include "Common/fileutil.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Kernel kernel;
// MainWindow window(nullptr, 0);
// window.show();
// // 创建一个QSettings对象,指定INI格式和配置文件路径
// QSettings settings("./config.ini", QSettings::IniFormat);
// // 从配置文件中读取数据
// QString avatarPath = settings.value("test.jpg/filePath").toString();
// QString md5 = settings.value("test.jpg/MD5").toString();
// qDebug() << avatarPath << " " << md5;
// // 检查某个键是否存在
//// bool exists = settings.contains("user2/avatarPath");
//// qDebug() << exists;
// // 删除某个键及其对应的值
// // settings.remove("user1/avatarPath");
return a.exec();
}