2019-02-08 00:24:46 +08:00
|
|
|
#include <QApplication>
|
|
|
|
#include "test_styling.h"
|
|
|
|
#include "jkqtplotter/jkqtplotterstyle.h"
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
2022-04-16 05:01:09 +08:00
|
|
|
|
|
|
|
#if QT_VERSION >= 0x050600
|
|
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
|
|
|
|
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
|
|
|
|
#endif
|
2019-02-08 00:24:46 +08:00
|
|
|
QApplication app(argc, argv);
|
|
|
|
|
2022-04-16 05:01:09 +08:00
|
|
|
|
2019-02-08 00:24:46 +08:00
|
|
|
// 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;
|
2019-02-08 00:24:46 +08:00
|
|
|
|
|
|
|
TestStyling win;
|
|
|
|
win.show();
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|