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

PointerToMemberFunction support for QState::addTransition()

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.3.1
    • Fix Version/s: 5.5.0
    • Component/s: Core: State Machine
    • Labels:
      None
    • Commits:
      ebd33883e79b458639e8fe118ccc285641223203

      Description

      Qt5 having a new connection syntax which allows for the use of function pointers but QState::addTransiton doesn't support it yet.

      It would be convenient (and consistent) to have function pointer syntax support for QState::addTransition() as well.

      QFinalState *s2 = new QFinalState();
      s1->addTransition(&button, &QPushButton::clicked, s2);
      

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                misery André Klitzing
                Reporter:
                tasuku.suzuki Tasuku Suzuki
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes