Work around high DPI issues on Windows.

This commit is contained in:
Nodir Temirkhodjaev 2020-01-03 17:07:28 +05:00
parent 743e75fe51
commit 5d3665c538

View File

@ -21,6 +21,12 @@ static void registerMetaTypes(void)
int main(int argc, char *argv[])
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
// Workaround for QTBUG-80934
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(
Qt::HighDpiScaleFactorRoundingPolicy::Round);
#endif
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton);