-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
28 lines (25 loc) · 684 Bytes
/
main.cpp
File metadata and controls
28 lines (25 loc) · 684 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
#include <execinfo.h>
#include <signal.h>
#include <unistd.h>
#include <QApplication>
#include <iostream>
#include "core/cpu.h"
#include "mainwindow.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/spdlog.h"
using namespace std;
int main(int argc, char* argv[])
{
try {
auto cpu_logger = spdlog::basic_logger_mt("cpu_logger", "LOG1.txt");
cpu_logger->set_level(spdlog::level::off);
} catch (const spdlog::spdlog_ex& ex) {
std::cout << "Log init failed: " << ex.what() << std::endl;
}
QApplication a(argc, argv);
MainWindow w;
QSize size = w.size();
cout << size.width() << endl;
w.show();
return a.exec();
}