JKQtPlotter/examples/styling/test_styling_main.cpp

27 lines
717 B
C++
Raw Normal View History

#include <QApplication>
#include "test_styling.h"
#include "jkqtplotter/jkqtplotterstyle.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);
// you can set the system-wide default style properties early on
// all JKQTPlotter instance created after this, will use these
// settings as their initial settings
2019-05-06 03:46:36 +08:00
JKQTPGetSystemDefaultStyle().userActionFontSize=12;
TestStyling win;
win.show();
return app.exec();
}