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

Provide access to signal parameters in SignalTransition::onTriggered

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • 5.6
    • 5.4.0
    • Quick: Other
    • None

    Description

      In the following example, assume mousePressed includes a pos parameter

      SignalTransition {
          signal: mousePressed
          guard: pos.x > 15
          onTriggered: console.log(pos.x)
      }
      

      In this example, the guard clause has access to the pos parameter, but onTriggered does not (console.log(pos.x) will fail). It would be helpful to have this information available in onTriggered.

      Attachments

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

        Activity

          People

            mbrasser Michael Brasser
            mbrasser Michael Brasser
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes