diff --git a/qt/src/EmuSettingsWindow.ui b/qt/src/EmuSettingsWindow.ui
index 7b0d71ef..b2f3c18c 100644
--- a/qt/src/EmuSettingsWindow.ui
+++ b/qt/src/EmuSettingsWindow.ui
@@ -11,7 +11,7 @@
- Qt::NoFocus
+ Qt::FocusPolicy::NoFocus
Settings
@@ -28,10 +28,10 @@
- QAbstractScrollArea::AdjustToContents
+ QAbstractScrollArea::SizeAdjustPolicy::AdjustToContents
- QListView::Fixed
+ QListView::ResizeMode::Fixed
-
@@ -115,7 +115,7 @@
-
- Qt::TabFocus
+ Qt::FocusPolicy::TabFocus
Restore all settings on the current page to their default values.
@@ -126,10 +126,6 @@
Restore Defaults
-
-
- ..
-
false
@@ -151,7 +147,7 @@
-
- Qt::Horizontal
+ Qt::Orientation::Horizontal
@@ -166,10 +162,6 @@
Close
-
-
- ..
-
diff --git a/qt/src/main.cpp b/qt/src/main.cpp
index d2c4fd34..c726ba5b 100644
--- a/qt/src/main.cpp
+++ b/qt/src/main.cpp
@@ -5,6 +5,7 @@
#include
#include
+#include
#ifndef _WIN32
#include
@@ -25,6 +26,12 @@ int main(int argc, char *argv[])
QGuiApplication::setDesktopFileName("snes9x-gtk");
+ if (emu.qtapp->platformName() == "windows")
+ {
+ if (emu.qtapp->style()->name() == "windows11")
+ emu.qtapp->setStyle("windowsvista");
+ }
+
#ifndef _WIN32
auto quit_handler = [](int) { QApplication::quit(); };
for (auto s : { SIGQUIT, SIGINT, SIGTERM, SIGHUP })