Hands-On Embedded Programming with Qt by John Werner

Hands-On Embedded Programming with Qt by John Werner

Author:John Werner
Language: eng
Format: epub, mobi
Tags: COM000000 - COMPUTERS / General, COM082000 - COMPUTERS / Bioinformatics, COM006000 - COMPUTERS / Buyer
Publisher: Packt Publishing
Published: 2019-07-12T11:46:30+00:00


Adding an event to a state

Whenever a state is entered, it processes an onentry event. Likewise, when the state is left, it processes an onexit event. One of the things we can do in an action is send an event either immediately or after a wait period. We are going to use this to make the wait state automatically transition to Idle.

Here is the very simple procedure we will use:

Right-click on the Wait state and select onentry | send:

In the Structure window, we will see the new onentry event with a send action, and below it in the Attributes window, we will see a table.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.