https://bugs.kde.org/show_bug.cgi?id=373178
Andreas Schneider <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Status|UNCONFIRMED |CONFIRMED Ever confirmed|0 |1 --- Comment #1 from Andreas Schneider <[email protected]> --- The following commit fixes the UI: app/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main.cpp b/app/main.cpp index 503ea95..97b6a09 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -119,8 +119,11 @@ int main(int argc, char *argv[]) )); aboutData->setShortDescription(i18n("An Image Viewer")); + // These attributes must be set before a Q(Gui)Application is constructed. + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QApplication app(argc, argv); - app.setAttribute(Qt::AA_UseHighDpiPixmaps, true); KAboutData::setApplicationData(*aboutData); app.setApplicationName(aboutData.data()->componentName()); app.setApplicationDisplayName(aboutData.data()->displayName()); However this also enables scaling for the images you want to show and that is wrong. They should be showed without any scaling applied. To test and fix it you can use: QT_SCALE_FACTOR=2 ./app/gwenview -- You are receiving this mail because: You are watching all bug changes.
