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

QmlRegisterType object's signal slot connections crashes when giving more than 2 argguments with signal.

    XMLWordPrintable

Details

    • Linux/X11
    • 7fa28f98824a94396106eadfc028b329985a0cfc (qt/qtdeclarative/dev)

    Description

      I need to send multiple arguments from cpp to qml with signal. I have a qmlRegisterType class which named "myqmlobject".  When I emit mysignal with 2 arguments like

      emit mysignal(myString, myInteger);
      

      I can handle this signal with

      Connections {
          target: myObject
          function onMysignal(myString, myInteger)
          {
              console.log("it works");
          } 
      }

      this qml codes.

      But when I try to send 3 or more arguments with signal application crashes.

      I send basic example application which reproduce this crash.

      Attachments

        1. multipleArg.zip
          4 kB
          Faruk Yıldırım

        Activity

          People

            max.goldstein Maximilian Goldstein
            yildirimfaruk Faruk Yıldırım
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: