ArchitectureColoredPainting/qt-material-widgets/examples/main.cpp

19 lines
477 B
C++
Raw Permalink Normal View History

2023-03-06 12:38:25 +08:00
#include <QtWidgets/QApplication>
#include <QDebug>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
QApplication a(argc, argv);
Q_INIT_RESOURCE(resources);
MainWindow window;
window.show();
return a.exec();
}