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

GoToStateTransition doesn't have Q_OBJECT macro

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 4.7.4
    • Fix Version/s: 5.0.0
    • Component/s: Core: State Machine
    • Labels:
      None
    • Commits:
      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

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

          Activity

            People

            Assignee:
            kenthans Kent Hansen (Inactive)
            Reporter:
            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