by AlexFagrell · 8y ago · 0 comments
My thinking was that the event loop is one of the first thing that you'll encounter, i.e. app.exec() in main, when using Qt. The fact that the flow of the app is event-driven is important to understand when working with a GUI toolkit and thought it would be good to introduce early on (even though you rarely use the actual event system itself). Perhaps not as a first topic though.
Yeah, I realised that it shouldn't be Shown HN, but can't find a way to edit it, thanks.
Appreciate the feedback, cheers!
Technically that's true, but as the event loop runs under the hood then the event loop doesn't assume a prominent role in Qt's mental model.
You can explain that it drives all the mouse, keyboard, and QTimer signals when you begin to implement the event slots on your widgets, but as far as getting an app to run it's a matter of calling app.exec() and leaving it alone.