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

Details

    Description

      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.

      Attachments

        1. qt_demo.zip
          2 kB
          Andres Nicolini

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes