mirror of
https://github.com/Linloir/GraphBuilder.git
synced 2025-12-16 19:58:12 +08:00
23 lines
578 B
C++
23 lines
578 B
C++
#include "mainwindow.h"
|
|
|
|
#include <QApplication>
|
|
#include <QDebug>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
//int id = QFontDatabase::addApplicationFont(":/fonts/fonts/corbel.ttf");
|
|
//qDebug() << id;
|
|
//QFontDatabase::addApplicationFont(":/fonts/fonts/corbell.ttf");
|
|
//Qt::AA_EnableHighDpiScaling;
|
|
#ifdef Q_OS_LINUX
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
#endif
|
|
QApplication a(argc, argv);
|
|
MainWindow w;
|
|
w.setWindowFlag(Qt::FramelessWindowHint);
|
|
w.setAttribute(Qt::WA_TranslucentBackground);
|
|
w.show();
|
|
return a.exec();
|
|
|
|
}
|