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

QState::addTransition(sender, signal, target) should accept null as target

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.3.0
    • State Machine
    • None

      States with no target are completely legitmate and the docs clearly state that.
      It is however an error to use

      QSignalTransition *QState::addTransition(QObject *sender, const char *signal, AbstractState *target)

      without setting a target, although if one creates new QSignalTransition (which is what the function does anyways) and does not set it's target (or set it to null) it is just fine.

      This is unexpected asymmetry, one should also be able to pass a null to addTransition.

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

            Unassigned Unassigned
            mnaydenov Mihail Naydenov
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes