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

Provide access to signal parameters in SignalTransition::onTriggered

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes