Translations:Development/Tutorials/Common Programming Mistakes/78/en

From KDE TechBase

Notice that window is created before the a.exec() call that starts the event loop. This implies that we want to avoid doing anything non-trivial in the top-level constructor, since it runs before we can even show the window.