mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-16 02:25:50 +08:00
26 lines
660 B
C++
26 lines
660 B
C++
#include <QApplication>
|
|
#include "test_styling.h"
|
|
#include "jkqtplotter/jkqtplotterstyle.h"
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
|
|
#if QT_VERSION >= 0x050600
|
|
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
|
|
JKQTPGetSystemDefaultStyle().userActionFontSize=12;
|
|
|
|
TestStyling win;
|
|
win.show();
|
|
|
|
return app.exec();
|
|
}
|