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

qml: signals cannot use inline components as argument type

    XMLWordPrintable

Details

    • 57808284db (qt/qtdeclarative/dev) 57808284db (qt/tqtc-qtdeclarative/dev) 55b4d8899c (qt/qtdeclarative/6.4) 55b4d8899c (qt/tqtc-qtdeclarative/6.4) 847e84466f (qt/tqtc-qtdeclarative/6.2)

    Description

      Using inline components in signals should be possible, but it seems that the qml utility is not allowing it.

      Example program:

      import QtQuick
      
      Item {
          component Abc: Item {}
          signal canYouFeelIt(arg1: Abc)
      }

      Qml output:

      QQmlApplicationEngine failed to load component
      file:///tmp/abc.qml:6:12: Invalid signal parameter type: Abc
      qml: Did not load any objects, exiting.
      

      Attachments

        Issue Links

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

          Activity

            People

              sami.shalayel Sami Shalayel
              sami.shalayel Sami Shalayel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes