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

state property is empty

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Incomplete
    • Affects Version/s: Qt3D 1.0
    • Fix Version/s: None
    • Component/s: Core: State Machine
    • Labels:
      None

      Description

      I'm trying to add to qstatemachine a property with string and an enum, but the result from the machine.property() is empty.
      QStatemachine m_machine ;
      idle->assignProperty(&m_machine, "state", Z_IDLE);
      cool->assignProperty(&m_machine, "state", Z_COOL);
      start_z->assignProperty(&m_machine, "state", Z_START);

      QVariant st = m_machine.property("state");
      QString s = st.toString();

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            andreahmed Ahmed Tolba
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes