Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt 6.2 alpha1 - calls order of invokable method.
QtWS25 Last Chance

Qt 6.2 alpha1 - calls order of invokable method.

Scheduled Pinned Locked Moved Unsolved General and Desktop
javascriptqjsengine
2 Posts 2 Posters 325 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ricardo MAtos
    wrote on 11 Jul 2021, 14:48 last edited by
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 12 Jul 2021, 05:11 last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      0

      1/2

      11 Jul 2021, 14:48

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved