Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Widgets and Designer > The Event Loop: Revisited

9.9. The Event Loop: Revisited

In Section 8.3, we introduced QApplication and the event loop. Now that you have had some experience with GUI programming, you are ready to look at events in more detail.

QWidgets send QEvents to other QObjects in response to user actions such as mouse events and keyboard events. A widget can also respond to events from the window manager such as repaints, resizes, or close events. Events are posted (i.e., added to the event queue) and can be filtered and prioritized. Furthermore, it is possible to post a custom event directly to any QObject or selectively respond to events that were posted to other objects. You can delegate the handling of an event to a specially defined handler object.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint