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.
Forum Updated to NodeBB v4.3 + New Features

Qt 6.2 alpha1 - calls order of invokable method.

Scheduled Pinned Locked Moved Unsolved General and Desktop
javascriptqjsengine
2 Posts 2 Posters 363 Views 1 Watching
  • 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 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
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on 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

      • Login

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