Enable attribute Qt::AA_EnableHighDpiScaling for support HighDpi displays.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-11-04 12:47:10 +02:00
parent 1bc0378b69
commit 595a7dcaff
2 changed files with 8 additions and 0 deletions

View File

@ -49,6 +49,10 @@ int main(int argc, char *argv[])
qt_qhash_seed.store(0); // Lock producing random attribute order in XML
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
#endif
MApplication app(argc, argv);
app.InitOptions();

View File

@ -53,6 +53,10 @@ int main(int argc, char *argv[])
qt_qhash_seed.store(0); // Lock producing random attribute order in XML
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // DPI support
#endif
VApplication app(argc, argv);
app.InitOptions();