Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.0.0
-
None
-
Ubuntu 10.04, desktop.
Description
The list model worker agent implementation has the following method:
Q_INVOKABLE void remove(int index);
If this is changed to:
Q_INVOKABLE void remove(int index, int count=1);
Then you call the following from a worker script:
model.remove(0, 10);
The count value is ignored and 1 is always passed through to the C++ method.
In QDeclarativePropertyCache::property() the declarative engine pointer is null when called from a worker script, and the fall through code that creates the property just looks at the name of the method being called, so it doesn't appear to support overloaded methods.