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

State Machine Framework: C++11

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes