KitwareMedical/SlicerCustomAppTemplate

Use Qt::AA_UseHighDpiPixmaps

Closed this issue · 2 comments

jcfr commented

#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
qreal dpr = sqrt(qApp->desktop()->logicalDpiX()*qreal(qApp->desktop()->logicalDpiY()) / (qApp->desktop()->physicalDpiX()*qApp->desktop()->physicalDpiY()));
logo.setDevicePixelRatio(dpr);
#endif

@dzenanz Instead of this approach (which lead to huge logo in the case of non-dpi), I suggest we use Qt::AA_UseHighDpiPixmaps.

That was basically a quick fix. A proper support for varying DPI would be great!

jcfr commented

Closing. Issues related to high dpi have been addressed in these commits: