-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
42 lines (38 loc) · 1.05 KB
/
main.cpp
File metadata and controls
42 lines (38 loc) · 1.05 KB
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
33
34
35
36
37
38
39
40
41
42
#include "mainwindow.h"
#include "mainwindownew.h"
#include <QApplication>
#include <QScreen>
#include <QFile>
#include <sqlitedatabase.h>
#include <mainwindow.h>
#include <sqlitedatabase.h>
#include <randomaccess.h>
#include <randomaccess.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// MainWindow w;
MainWindowNew w;
auto s = w.screen();
auto size = s->size();
w.resize(1440, 960);
w.move ((size.width() - w.width())/2,
(size.height() - w.height())/2
);
w.showNormal();
// sqlDB.SqliteDatabase::initPickNameDBtest();
// 测试随机选人类
// RandomAccess* random;
// random = new RandomAccess();
// QSet<int> set = random->getRandom(20,3);
// QSet<int>::iterator it;
// for(it = set.begin(); it != set.end(); it++) {
// qDebug() << *it;
// }
// 测试随机选人函数
// SqliteDatabase* random;
// random = new SqliteDatabase();
// QVector<QString> str = random->getRanPer(3, 1, random->getPerData());
// qDebug() << str;
return a.exec();
}