Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117675

[REG 6.5.2 → 6.5.3] Unable to determine callable overload

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P1: Critical P1: Critical
    • 6.5
    • 6.5.3, 6.6.0
    • QML: Compiler
    • None
    • Windows

      After updating from Qt 6.5.2 to 6.5.3 the following error message is shown (followed by multiple empty lines but no "Candidates" text):

      qrc:/qml/MainPage.qml:462: Error: Unable to determine callable overload.  Candidates are:
          
          
          
      

      A similar problem is described here: https://bugs.kde.org/show_bug.cgi?id=472003.

      The calling code looks like this:

      // Qml:
      function updateScalebar() {
         var dist;
         dist = Math.round(...);
         UnitsHandler.updateMapScalebar(dist, 120); // this is line 462
      }
      
      // C++:
      class UnitsHandler
      {
          Q_OBJECT
          QML_ELEMENT
          QML_SINGLETON
      public:
         Q_INVOKABLE void updateMapScalebar(qreal meters, int targetWidth);
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ulherman Ulf Hermann
            Harald Meyer Harald Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes