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

[Reg 6.5.2->6.5.3]Triggering a signal of a singleton using Connections segfaults

XMLWordPrintable

      Triggering a signal from a simple singleton like the following:

      // Foo.qml
      pragma Singleton
      import QtQml
      
      QtObject { signal foo() }
      

      from `Connections` in a different file:

      // Bar.qml
      ...
          Button { onClicked: Foo.foo() }
      
          Connections {
              target: Foo
              function onFoo() { console.log("foo"); }
          }
      ...
      

      Crashes the application.

       

      I tested the same QML program with 6.5.2 and it works as expected.

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

            qtqmlteam Qt Qml Team User
            bysnack Andres Nicolini
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes