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

GoToStateTransition doesn't have Q_OBJECT macro

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P3: Somewhat important
    • Resolution: Done
    • 4.7.4
    • 5.0.0
    • Core: State Machine
    • None
    • 5049cff4969b969a3bec5d14945a07972bdb17bc

    Description

      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)

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes