[Qt-qml] Exporting overloaded methods to QML
Kent Hansen
kent.hansen at nokia.com
Mon Jun 21 12:46:39 CEST 2010
On 18. juni 2010 20:14, ext Artur Souza (MoRpHeUz) wrote:
> On Fri, Jun 18, 2010 at 11:04 AM, Kent Hansen<kent.hansen at nokia.com> 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
More information about the Qt-qml
mailing list