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

GoToStateTransition doesn't have Q_OBJECT macro

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.0.0
    • 4.7.4
    • State Machine
    • None
    • 5049cff4969b969a3bec5d14945a07972bdb17bc

      file qstatemachine.cpp, line 1443: GoToStateTransition trans = qFindChild<GoToStateTransition>(sourceState);
      the function qFindChild should match only the GoToStateTransition type, but it actually matches any QAbstractTransition type due to
      the the absence of Q_OBJECT macro in the GoToStateTransition class to contain its complete meta object info;

      this crashes the whole statemachine structure (disconnects the other transitions)

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

            kenthans Kent Hansen (Inactive)
            mselim Mohamed Selim
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes