Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 3.5.0-rc1
-
Ubuntu 15.04 64 bit
Creator 3.5 built on Qt 5.5.0
Qt Quick UI project built on Qt 5.3.1, Qt 5.4.2 or Qt 5.5.0
Description
- Create a Qt Quick UI project.
- Run this in the Debugger.
- In "Locals and Expressions" view, select an item.
- In the QML/JS Console, type:
opacity = 0.2
The QML/JS Console will display: 0.20000000000000001.
The QML/JS Console should show the set value which is 0.2. If Creator was built with Qt 5.4.2, this seems to work correctly. On which version of Qt the Qt Quick UI project is running doesn't seem to matter.
If this is a bug in Qt, please forward the report to the correct component.
Found by Squish test tst_qml_js_console.
Attachments
Issue Links
- duplicates
-
QTBUG-47192 [REG 5.4.2->5.5,0] Conversion from QVariant to QString is broken for double and float values
- Closed
For Gerrit Dashboard: QTCREATORBUG-14757 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
122139,2 | Squish: Avoid float rounding issues in tst_qml_js_console | 3.5 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |