On Sat, 26 Feb 2011 12:31:41 +0100
"Ville M. Vainio" <[email protected]> wrote:

> > Maybe, that's because QWidget is not thread safe and I use threads?  
> 
> Yeah, using threads risks crashing the whole program randomly. In
> general threads are not recommended for GUI programs.

The geotag plugin which lets you interactively geotag / "geoview" nodes
in a google map browser page uses threads and doesn't crash, although
this may only be because it hasn't been tested that much.  But I seem
to remember needing to use some quite specialized thread aware queues to
avoid blocking etc., you might look at that.

Come to think of it it probably doesn't do any drawing in leo outside
the main thread, but maybe its architecture will give you a hint about
how you could also avoid that.

Whoops, now I see it does block when you request the user to locate
something, which is ok for it's workflow, but nonetheless it has some
esoteric (to me) thread queue thing in it which might be interesting.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to