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

State Machine Framework: C++11

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: P4: Low P4: Low
    • None
    • None
    • State Machine
    • None

      Currently with QState::addTransition the following is not legal:

      state1->addTransition(button, &QPushButton::clicked, state2)
      

      I still have to use the SIGNAL macro.

      I'd like to see this more along the lines of the C++11 features that are now available in QObject::connect.
      Example:
      http://doc.qt.io/qt-5/qobject.html#connect-4
      with the PointerToMemberFunction parameter. Then the above snippet would be legal.

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

            misery André Klitzing
            nicesw123 nicesw123
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes