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

        For Gerrit Dashboard: QTBUG-94360
        # Subject Branch Project Status CR V

        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:

              Gerrit Reviews

                There are no open Gerrit changes