On 18. juni 2010 20:14, ext Artur Souza (MoRpHeUz) wrote: > On Fri, Jun 18, 2010 at 11:04 AM, Kent Hansen<[email protected]> wrote: > > >> This doesn't work. QtDeclarative currently doesn't use the same QObject >> method call logic as QtScript. You can "fix" that by uncommenting the two >> lines after "// Uncomment to use QtScript method call logic" in >> qdeclarativeobjectscriptclass.cpp. That will also make overload resolution >> work. >> > Ouch, just because it seemed to be the best approach :P > Any chances to get this "officially" uncommented? >
It was done for performance reasons. QML doesn't support overloaded slots, and it doesn't need all the complexity of QtScript's argument conversion. I don't see this documented anywhere though. I've created http://bugreports.qt.nokia.com/browse/QTBUG-11604 for this. Regards, Kent _______________________________________________ Qt-qml mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-qml
