[education/rkward] rkward: Enable highdpi scaling

Thomas Friedrichsmeier null at kde.org
Thu Mar 31 16:27:37 BST 2022

Git commit d018277dd5dbe6d08512186b52947a4e97755e9d by Thomas Friedrichsmeier, on behalf of Nicolas Fella.
Committed on 31/03/2022 at 15:21.
Pushed by tfry into branch 'master'.

Enable highdpi scaling

Otherwise everything is tiny on Windows when using HighDPI screens

M  +1    -0    rkward/main.cpp


diff --git a/rkward/main.cpp b/rkward/main.cpp
index 87eb9767..1150f58b 100644
--- a/rkward/main.cpp
+++ b/rkward/main.cpp
@@ -240,6 +240,7 @@ QString resolveRSpecOrFail (QString input, QString message) {
 int main (int argc, char *argv[]) {
 	RK_Debug::RK_Debug_Level = DL_WARNING;
+	QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
 	// annoyingly, QWebEngineUrlSchemes have to be registered before creating the app.
 	QWebEngineUrlScheme scheme("help");

More information about the rkward-tracker mailing list