mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:06:08 +00:00
Work around high DPI issues on Windows.
This commit is contained in:
parent
743e75fe51
commit
5d3665c538
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user