Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
4.6.0
-
None
Description
#include <QtCore> #include <QtScript> int main(int argc, char **argv) { QCoreApplication app(argc, argv); QScriptEngine eng; QScriptValue o = eng.newQObject(&app); o.setProperty("x", 42); app.setProperty("x", 123); qWarning() << o.property("x").toInt32(); return 0; }
With Qt 4.5, the above program prints "42" (value of the JS property); with 4.6, it prints "123" (value of the dynamic C++ property).
Attachments
Issue Links
- is required for
-
QTBUG-17856 Resolve QtScript behavioral differences due to switching to JavaScriptCore
-
- Closed
-
-
QTBUG-16571 Resolve QtScript behavior that reflects implementation of old ("classic") back-end
-
- Closed
-