I want to report the critical issue with Qt 6. For example, I created this method to read the QSettings ini file.
QVariant ManageProgram::loadSettings(QString group, QString property, QVariant defaultValue)
QSettings appSettings(APP_SETTINGS_PATH, QSettings::IniFormat);
QVariant valueVariant = appSettings.value(property, defaultValue);
Then, I want to get the value from my enum: Connection::State
Connection::State wlanConnectionState = ManageProgram::loadSettings("AppSettings", "WlanState", Connection::State::Unknown).value<Connection::State>();
The stored value is: 2 but it returns as 0 on Qt 6.3.2 & Qt 6.4.1, which breaks some of the features in my program. On Qt 5 this works well and returns the correct enum value: 2. Please, fix this issue. Thank you.