Commit 4f350791 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

mainwindow: temp fix for high dpi viewing

- Qt does not automatically scale even when AA_EnableHighDpiScaling
  is set. For the best UI at high scaling ratios, UI dimensions should
  be multiplied by the scaling ratio manually. For instance, Qt
  accepts pixel values only for border-radius, and any stylesheets
  with that property, would need to be manually calculated and
  re-propagated. This patch will allow windows to render a fixed size
  window, slightly blurry.

Change-Id: I4e1e85f31e7630bc60330efdb55e6a5cb568b952
parent 9300eb64
......@@ -120,8 +120,15 @@ main(int argc, char *argv[])
newArgv[argc + 1] = nullptr;
#ifdef Q_OS_WIN
#endif // Q_OS_WIN
QApplication a(newArgc, newArgv);
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, false);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment