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

PointerToMemberFunction support for QState::addTransition()

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.5.0
    • 5.3.1
    • Core: State Machine
    • None
    • 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

          For Gerrit Dashboard: QTBUG-40293
          # Subject Branch Project Status CR V

          Activity

            People

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