JKQtPlotter/examples/jkqtplot_test/jkqtplot_test.cpp

23 lines
467 B
C++
Raw Normal View History

#include <QApplication>
#include <QtGui>
#include <cmath>
#include "testmain.h"
int main(int argc, char* argv[])
{
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
#endif
QApplication app(argc, argv);
TestMain tab;
tab.show();
return app.exec();
}