Qt 6.2 alpha1 - calls order of invokable method.
Unsolved
General and Desktop
-
If there are 2 or more methods with the same name but reciving diferent arguments the QJSEngine Pickup the First One declared.
Example:
methodxyz(string)
methodxyz(objptr*)It picks up the first one passing as argument a string and not the one that i was expecting an object as it was send.
-
Does it work in another way in Qt 6.1 or 5.15?
Since you mention JavaScript, perhaps it's "trigger happy" attitude towards converting types is interfering here? To be absolutely sure which method will be called, use different method names.