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

state property is empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt3D 1.0
    • State Machine
    • None

      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();

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes