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

19 lines
477 B
C++

#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();
}