Results 1 to 7 of 7

Thread: How to add a transition in onEntry in Qtstatemachine

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to add a transition in onEntry in Qtstatemachine

    Taking your example, MyStateMachine would have another member of one (or more) classes that serve as signal sources for transitions, if I would like to add logging/break points as you suggested earlier or if the actual trigger needs to be a method call else where.

    One example for the latter would be that you need to expose an object with callable methods to QML so that you can trigger statemachine transitions from there, but only want to expose a subset of such triggers.
    Also applies to only exposing certain transition trigger functions/slots to certain widgets.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    d_stranz (18th April 2016)

Similar Threads

  1. QStataMachine: transition guards
    By nick85 in forum Newbie
    Replies: 5
    Last Post: 12th April 2024, 20:21
  2. listview transition
    By joko in forum Qt Quick
    Replies: 0
    Last Post: 15th June 2015, 17:59
  3. Qt 4.7.3 to Qt 5.1 transition issue
    By Rajesh.Rathod in forum Qt Programming
    Replies: 1
    Last Post: 9th July 2014, 10:39
  4. Replies: 3
    Last Post: 2nd September 2013, 18:01
  5. QtStateMachine in GUI projects
    By dyngoman in forum Qt Programming
    Replies: 2
    Last Post: 15th March 2010, 17:43

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.