Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Does StateMachine support PropertyChanges?

Does StateMachine support PropertyChanges?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 269 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stan.m
    wrote on last edited by
    #1

    The QML StateMachine component seems wonderful, but how can it not support PropertyChanges???

    With legacy states, PropertyChanges change properties from their initial values. Changing from one state to another reliably restores properties to initial values if not expressly set via a PropertyChanges element.

    PropertyChanges elements are not recognized in the new StateMachine component. Without this elegant feature, one must write Javascript code to change properties and track which properties were changed in order to ensure they are restored correctly -- it has become extremely error-prone!

    Am I correct? Is the new StateMachine inferior to the legacy states support when it comes to managing properties?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved