Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.2.0
-
None
-
6d4d98bc593289d4418a1ab83f00dca0608da23e
Description
My C++ code looks like this:
QStringList list() {
return QStringList() << "a" << "b" << "c";
}
When I access this list from JS I can print the list and iterate over it. However list().indexOf("b") always returns -1.
Expected result: 1
This used to work in Qt 5.1.
Attachments
For Gerrit Dashboard: QTBUG-33542 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
67130,2 | V4: fix Array.indexOf() for QStringList | stable | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
71742,2 | V4: fix Array.indexOf() for QStringList | release | qt/qtdeclarative | Status: MERGED | +2 | 0 |