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

WebChannel not supported Rest parameters of qml function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.0
    • WebChannel
    • None

    Description

      QtObject {
              id: qmlConsole
      
              WebChannel.id: "console"
      
              function log(...args) {
                  console.log("WebChannel:", args)
              }
              function info(...args) {
                  console.info("WebChannel:", args)
              }
              function warn(...args) {
                  console.warn("WebChannel:", args)
              }
              function error(...args) {
                  console.error("WebChannel:", args)
              }
          }
      

      When call the "console.log("aaa", "bbbb")" in webchannel, will print the error:

      Print Messages

      No candidates found for "log" with 2 arguments on object QObject_QML_3(0x5603dc193b10) .

      Attachments

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

        Activity

          People

            milianw Milian Wolff
            zccrs JiDe Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes