2 #include <QSurfaceFormat>
4 #include "GUI/timezoneinfo.h"
6 int main(int argc
, char *argv
[])
8 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
9 QApplication::setAttribute(Qt::AA_EnableHighDpiScaling
);
10 QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps
);
12 qRegisterMetaTypeStreamOperators
<TimeZoneInfo
>("TimeZoneInfo");
14 qRegisterMetaType
<TimeZoneInfo
>("TimeZoneInfo");
18 fmt
.setProfile(QSurfaceFormat::CoreProfile
);
20 fmt
.setRenderableType(QSurfaceFormat::OpenGLES
);
23 fmt
.setRenderableType(QSurfaceFormat::OpenGL
);
25 fmt
.setDepthBufferSize(24);
26 fmt
.setStencilBufferSize(8);
28 QSurfaceFormat::setDefaultFormat(fmt
);