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

state property is empty

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt3D 1.0
    • Core: State Machine
    • 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

            thiago Thiago Macieira
            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