Important: Please read the Qt Code of Conduct -

Qt 6.2 alpha1 - calls order of invokable method.

  • If there are 2 or more methods with the same name but reciving diferent arguments the QJSEngine Pickup the First One declared.


    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.

  • Moderators

    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.

Log in to reply