Derek Fountain wrote:
> I'll start this one with a reminder that I'm new to Java and to Qt... :)
> 
> I was just wondering whether it makes sense to fire up parts of an 
> application's GUI in separate Java threads? Java threads are pushed as an 
> important part of the language, so I'd like to get used to using them.
> 
> The application I'm tinkering with generates a log which I currently show in 
> a separate QDialog-based window when the user calls it up. I have no 
> particular reason to do so, but I was thinking it might be nice, as an 
> exercise, to isolate that from the rest of the application, and the obvious 
> way to do it would be to execute it in its own thread. Can I do that? If so, 
> where would I start?

You cannot have any part of the GUI running in a thread other than the 
main thread. That doesn't prevent you from starting worker threads that 
do the logging and that there is communication between the worker thread 
and the dialog, using events, queued connections or any other form of 
thread safe communcation you prefer.

best regards,
Gunnar
_______________________________________________
Qt-jambi-interest mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest

Reply via email to