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

<state> silently uses the global <datamodel> instead of the one defined in its own scope

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.2
    • State Machine: SCXML
    • None

      Reproducer attached. It features a state machine with 3 <datamodel>: a global one directly under <scxml> and 2 local ones, one for each <state>. On entering each <state>, it's going to log "ID".

      Expected result:
      "IDin1" and "IDin2" will log "1" and "2", respectively. Because those are the local ones defined in each <state>, and log should just use the "closest" data.

      Actual result:
      Both log "0", the global data.

      Other than fixing the behavior, maybe we can also add some sort of warning about "identical ids detected for multiple date entries"?

        1. QTBUG-135245.7z
          1 kB
          Luqiao Chen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ulherman Ulf Hermann
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes