Details
-
Bug
-
Resolution: Done
-
P0: Blocker
-
5.6.0, 5.7.0, 5.8.0 Alpha
-
iOS 10, macOS Sierra
Description
The problem seems only to occur on iOS 10. It worked fine on iOS 9 and also on other platforms:
[EDIT]: Not only only iOS 10 is affected, but also all Qt apps running on macOS Sierra.
QSettings settings; settings.setValue("test", 1.0f); QSetting settings; bool bOk; setting.value("test", 1.0).toFloat(&bOk); // bOk is always false and 0 is returned
With qreal/double everything works:
void setSettings() { QSettings settings; settings.setValue("test", 1.0); } void loadSettings() { QSetting settings; bool bOk; setting.value("test", 1.0).toReal(&bOk); // bOk }
Attachments
There are no Sub-Tasks for this issue.
Gerrit Reviews
For Gerrit Dashboard: QTBUG-56124 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
172370,7 | Don't truncate QDateTime milliseconds when storing QSettings on Apple platforms | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |
172679,3 | Apple OS: Handle QSetting strings with embedded zero-bytes | 5.8 | qt/qtbase | Status: MERGED | +2 | 0 |
174213,4 | Apple OS: Handle QSetting strings with embedded zero-bytes | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |
174356,2 | Apple OS: Handle QSetting strings with embedded zero-bytes | 5.7.1 | qt/qtbase | Status: MERGED | +2 | 0 |