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

State Machine Framework: C++11

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core: State Machine
    • Labels:
      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

              Assignee:
              misery André Klitzing
              Reporter:
              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