diff --git a/main.go b/main.go index 17e440b..b0428a7 100644 --- a/main.go +++ b/main.go @@ -15,6 +15,12 @@ func main() { qt.QGuiApplication_SetApplicationDisplayName("QBolt") qt.QGuiApplication_SetWindowIcon(qt.NewQIcon4(":/rsrc/database_lightning.png")) + // High DPI tweaks + qt.QCoreApplication_SetAttribute2(qt.AA_EnableHighDpiScaling, true) + qt.QCoreApplication_SetAttribute2(qt.AA_UseHighDpiPixmaps, true) + qt.QCoreApplication_SetAttribute2(qt.AA_Use96Dpi, true) + qt.QGuiApplication_SetHighDpiScaleFactorRoundingPolicy(qt.PassThrough) + w := NewMainWindow() w.ui.MainWindow.Show()