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

Handling of origin in QScxmlEvent only dispatches to immediate children

XMLWordPrintable

    • Windows

      In QScxmlStateMachine->routeEvent this code is used to dispatch events starting with a # to children services :

      for (const auto &invokedService : m_invokedServices) {
        auto service = invokedService.service;
        if (service == nullptr)
          continue;
        if (service->id() == originId) {
          qCDebug(qscxmlLog) << q << "routing event" << event->name()
            << "from" << q->name()
            << "to child" << service->id();
          service->postEvent(new QScxmlEvent(*event));
        }
      }

      The problem here is that if the service itself has children, then this loop will not consider them.
      So it means that only directly invoked scxml machines are considered.
      This call would need to be recursing the entire service tree.

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

            mate Máté Barany
            tommimtauriainen Tommi M. Tauriainen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change