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

PointerToMemberFunction support for QState::addTransition()

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.5.0
    • 5.3.1
    • State Machine
    • None
    • ebd33883e79b458639e8fe118ccc285641223203

      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);
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes