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

Document that mixing old/new forms in QML Connections causes new form to not work

    XMLWordPrintable

Details

    • Windows
    • 3cd0000b70 (qt/qtdeclarative/dev) 3cd0000b70 (qt/tqtc-qtdeclarative/dev) 29baa90d2d (qt/qtdeclarative/6.4) 29baa90d2d (qt/tqtc-qtdeclarative/6.4)

    Description

      (Not sure if this is a bug, or a need for updated documentation. Also please edit component(s) as required).

      The Connections QML type can accept signals declared with the old form (onSignal: {...}) or the new form (function onSignal() {...}).

      If BOTH are used in the same connections block, those declared with the new form (function) do not work.

      All files necessary to build demo app are attached. Change the comments in the Connections block in Window.qml to test different combinations of old/new form.

      Attachments

        1. ConnTest.pro
          0.2 kB
        2. CppObject.cpp
          0.4 kB
        3. CppObject.h
          0.7 kB
        4. main.cpp
          0.4 kB
        5. Window.qml
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            jirauser60626 user-8b75a (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes