Skip to content
Snippets Groups Projects
Commit 25d2fd84 authored by akiraohgaki's avatar akiraohgaki
Browse files

Check Qt version and set AA_EnableHighDpiScaling

parent 4d4c3d11
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,9 @@
int main(int argc, char *argv[])
{
// Init
//QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // Qt 5.6 or higher
if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) {
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
}
QGuiApplication app(argc, argv);
Core::Config *config = new Core::Config(":/configs");
Core::Network *network = new Core::Network(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment