fix: proper svg icon rendering on hidpi screen.

This commit is contained in:
Chris Xiong
2022-09-29 01:11:21 -04:00
committed by Gary Wang
parent 756d0be32f
commit cc7d58d4ec
7 changed files with 46 additions and 18 deletions

View File

@ -20,6 +20,9 @@
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
a.setAttribute(Qt::ApplicationAttribute::AA_UseHighDpiPixmaps);
#endif
QTranslator translator;
QString qmDir;