I have been reading a lot about this, but I don\'t fully get how to go about it (e.g. see How to avoid Qt app.exec() blocking main thread).
The following code is a ve