Uploaded image for project: 'Qt Safe Renderer'
  1. Qt Safe Renderer
  2. QSR-751

Document state change behavior

XMLWordPrintable

    • Icon: User Story User Story
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • QSR 1.2
    • Documentation
    • None
    • Ib80aba895ae173678e6e77b2ec2b7c09e65f0cc0

      In 1.2 it possible to define states for the safety elements using  QML state.

       SafePicture {
           id: engineIcon
           width: 40
           height: 40
           x: 40
           y: 40
           source: "iso_grs_7000_4_2423.dat"
           states: [
             State
             {            
                  name: "warning"
                  PropertyChanges { target: icon; width: 80; height: 80; color: "yellow"}
             },
             State       
             {
                 name: "fault"
                 PropertyChanges \{ target: icon; width: 80; height: 80; color: "red"}
             }
           ]
       }

       

      In the safe renderer there is introduced the event which changes the item state:

      QSafeEventChangeState(item id, state name)

       

       

        For Gerrit Dashboard: QSR-751
        # Subject Branch Project Status CR V

            tarjasundqvist Tarja Sundqvist
            teemu.holappa Teemu Holappa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes