From d2f331c813b6172e30742a980ed484b26150d92a Mon Sep 17 00:00:00 2001 From: dushyant basson <39452934+dushyant-basson@users.noreply.github.com> Date: Tue, 5 Sep 2023 18:23:49 +0530 Subject: [PATCH] update --- src/qtviewer/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qtviewer/main.cpp b/src/qtviewer/main.cpp index 3652d247a5..d986e6751e 100644 --- a/src/qtviewer/main.cpp +++ b/src/qtviewer/main.cpp @@ -5,7 +5,6 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); - qreal dpiScale = app.devicePixelRatio(); // Set the icon in the window title-bar on mswindows // and dock icon on macos. @@ -16,6 +15,8 @@ int main(int argc, char *argv[]) // mswindows - .rc file // macos - .icns file (using CMake) + qreal dpiScale = app.devicePixelRatio(); + MainWindow window(dpiScale); window.show();