I try to extend an old program that runs under Ubuntu/Linux Desktop with a Qt-network support. Having a LAN communication with these libraries needs to run the .exec()
of the QEventLoop to really start working (i.e.: accept connections, receive, send, etc.)
The problem
Well the problem is I don't know where this event loop is in the main program and because I vaguely know about it's design I prefer a solution that is as indipendent as possible.
My idea
I already checked I don't need the main-QEventLoop, and it's alright to make another one just for the networking (i.e. nesting). Unfortunately I can't figure out how to run both loops in parallel, since my program stops at the nested-.exec()
and so the main program is on halt too.
So my main intention is actually to extend the main program with a Qt-Networking, I'm open for other solutions too.