mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-17 07:28:12 +08:00
26 lines
983 B
C++
26 lines
983 B
C++
#include <QtWidgets/QApplication>
|
|
#include <qfontdatabase.h>
|
|
#include <string>
|
|
|
|
#include "mainwindow.h"
|
|
#include "logger.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv); // Create main application instance
|
|
|
|
QFontDatabase::addApplicationFont(":/fonts/font_awesome_6_regular_free.otf"); // Add font awesome font to application
|
|
QFontDatabase::addApplicationFont(":/fonts/font_awesome_6_solid_free.otf"); // Add font awesome font to application
|
|
QFontDatabase::addApplicationFont(":/fonts/corbel.ttf"); // Add corbel font to application
|
|
QFontDatabase::addApplicationFont(":/fonts/Deng.ttf"); // Add Deng Xian font to application
|
|
QFontDatabase::addApplicationFont(":/fonts/Dengb.ttf"); // Add Deng Xian Bold font to application
|
|
QFontDatabase::addApplicationFont(":/fonts/Dengl.ttf"); // Add Deng Xian Light font to application
|
|
|
|
MainWindow w;
|
|
w.setMouseTracking(true);
|
|
w.resize(1250, 750);
|
|
w.show();
|
|
|
|
return a.exec();
|
|
}
|