Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8.0 RC
-
None
-
3d3ff946e (dev), d05efeb35 (6.8), f2431370a (dev), bdb1d21a0 (6.8)
Description
https://bugs.kde.org/show_bug.cgi?id=488558 shows a case where a QJsonArray was implicitly converted to QStringList via JavaScript Array in Qt 6.7. This doesn't work anymore because since https://codereview.qt-project.org/c/qt/qtdeclarative/+/561082 a QJsonArray is represented as QV4::Sequence, not as JS Array.
So the underlying question is whether we should implicitly coerce array-likes to QStringList (via element-wise ToString). If so, this should work with all array-likes. If not, it should also not work for JavaScript arrays.
Attachments
Issue Links
- is duplicated by
-
QTBUG-127600 Assigning list<string> to list<var> silently fails
- Closed
For Gerrit Dashboard: QTBUG-126398 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
570793,6 | QmlCompiler: Don't generate invalid code for unstorable lists | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
571435,7 | QML: Allow conversion between different list types | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
572668,2 | QmlCompiler: Don't generate invalid code for unstorable lists | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
574352,3 | QML: Allow conversion between different list types | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | +1 |