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

From KDE TechBase

The solution is simple: we need to delay the construction of anything besides the GUI until after the event loop has started. Here is how the example class MainWindow's constructor could look to achieve this: