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

QMetaObject::invokeMethod not working when calling from c++ to qml item method.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • None
    • 5.15.0
    • Core: Object Model
    • None
    • WebAssembly

          QVariant aViewItem;
          QMetaObject::invokeMethod(myQuickWindow, "createViewItem",
                                    Q_RETURN_ARG(QVariant, aViewItem),
                                    Q_ARG(QVariant, QVariant::fromValue(theView)));
      

      the code snippet above do nothing.

      The wasm was build with em++ 1.39.20

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

            mikolaj.boc MikoĊ‚aj Boc (Inactive)
            bugman Vico Liang
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes