diff --git a/src/qt_gui/settings_dialog.cpp b/src/qt_gui/settings_dialog.cpp index 8d69c58cf..e546e0997 100644 --- a/src/qt_gui/settings_dialog.cpp +++ b/src/qt_gui/settings_dialog.cpp @@ -184,8 +184,14 @@ SettingsDialog::SettingsDialog(std::span physical_devices, connect(ui->chooseHomeTabComboBox, &QComboBox::currentTextChanged, this, [](const QString& hometab) { Config::setChooseHomeTab(hometab.toStdString()); }); - connect(ui->showBackgroundImageCheckBox, &QCheckBox::stateChanged, this, - [](int state) { Config::setShowBackgroundImage(state == Qt::Checked); }); +#if (QT_VERSION < QT_VERSION_CHECK(6, 7, 0)) + connect(ui->showBackgroundImageCheckBox, &QCheckBox::stateChanged, this, [](int state) { +#else + connect(ui->showBackgroundImageCheckBox, &QCheckBox::checkStateChanged, this, + [](Qt::CheckState state) { +#endif + Config::setShowBackgroundImage(state == Qt::Checked); + }); } // Input TAB {