Hmm.... Why do you need a separate event loop for networking? Qt4 uses glib event loop itself (if you compile it that way), so you are using a single loop even now. I just don't see the point of separate event loops... Could you explain?
Hmm.... Why do you need a separate event loop for networking? Qt4 uses glib event loop itself (if you compile it that way), so you are using a single loop even now. I just don't see the point of separate event loops... Could you explain?
The library this application used is based on glib. It need an event loop to keep monitoring network and callback application. In Qtopia, QtopiaApplication::exec() maybe GUI event loop. I'm not sure this could also monitor network.
Qt/Qtopia contains networking classes. I'm sure you can use them instead of the glib dependency. But regardless of that if you use a glib-enabled Qt, the Qt event loop should work within the glib event loop without any special tricks to activate the loop. Just call QApplication::exec() and the loops should cooperate. At least that's how I understand it. There is even an article about it somewhere on Trolltech Labs or Qt Quarterly - you can try to dig it out...
Bookmarks