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

Crash in QQmlBoundSignal constructor

    XMLWordPrintable

Details

    Description

      We end up creating a QQmlBoundSignal instance on something that is not a signal. This results in a crash.

      import QtQuick 2.0
      
      Rectangle {
          width: 100
          height: 62
      
          function foo() {
              console.log("foo")
          }
      
          onFoo: console.log("onFoo")
      }
      

      In the code above, it looks like the onFoo line is triggering a "store signal" instruction even though there's no foo signal declared. There is a foo function declared, though, which seems to be responsible for the crash.

      Attachments

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

        Activity

          People

            chriadam Christopher Adams (closed Nokia identity) (Inactive)
            dedietri Gabriel de Dietrich (drgvond)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes