The case is I've got two event loops in application, one is Qtopia's GUI's event loop, the other is glib's event loop for network.
In Qtopia 2.2.0, I cannot use QThread because of our development environment configuration. So I use QTimer. When it's timeout,
g_main_context_iteration(g_main_context_default(), FALSE);
g_main_context_iteration(g_main_context_default(), FALSE);
To copy to clipboard, switch view to plain text mode
will be called.
Now in Qtopia 4.4.0, when I port this code, compile, and run, It says QTimer should be used in thread started with QThread. Does that mean I must start a timer in an event loop? If I use one thread for GUI event loop, the other for listening network events to give user prompts, will this work?
Bookmarks