From 1bc0378b691008d40464d722d6bc59b55da24f9f Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 4 Nov 2016 12:44:57 +0200 Subject: [PATCH] Enable attribute Qt::AA_UseHighDpiPixmaps only since Qt 5.6.0. ref #584. --HG-- branch : develop --- src/libs/vmisc/vabstractapplication.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/libs/vmisc/vabstractapplication.cpp b/src/libs/vmisc/vabstractapplication.cpp index 4c7904170..2acf0a9f3 100644 --- a/src/libs/vmisc/vabstractapplication.cpp +++ b/src/libs/vmisc/vabstractapplication.cpp @@ -101,8 +101,20 @@ VAbstractApplication::VAbstractApplication(int &argc, char **argv) } #endif // QT_VERSION >= QT_VERSION_CHECK(5, 2, 0) -#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) // Enable support for HiDPI bitmap resources + // The attribute is available since Qt 5.1, but by default disabled. + // Because on Windows and Mac OS X we always use last version + // and Linux users send bug reports probably they related to this attribute + // better not enable it before Qt 5.6. + // + // Related issues: + // Issue #584. frequent xcb errors and hangs + // https://bitbucket.org/dismine/valentina/issues/584/frequent-xcb-errors-and-hangs + // Issue #527. Error: Pasting a wrong formula : every dialog box is "glued" to the screen and can't close file + // or Valentina. + // https://bitbucket.org/dismine/valentina/issues/527/error-pasting-a-wrong-formula-every-dialog + setAttribute(Qt::AA_UseHighDpiPixmaps); #endif