Hi Marc, On 16. Jul 2009, at 14:28, m0bl0 wrote:
> I've been working on a Qt integration for Equalizer. [...] Nice - this is in fact on Eq's feature list. Can you contribute this work? > I'm struggling with event handling: > > I receive events in the main thread (which created the widget, > because it's > the only one allowed to in Qt), and need to get them to the Pipe > thread. Why? Do you have issues with processing them on the main thread? > I think the "correct" approach would be to repost the events on the > Pipe > thread, and implement a QtMessagePump to retrieve and dispatch them. > However, the creation of the window system-specific MessagePump is > hardcoded > (in eq::CommandQueue::setWindowSystem), and I don't see a way to get > my > hypothetical QtMessagePump in there without patching Equalizer, > which I'd > very much like to avoid. Understood. The correct way is to analyze the event handling needs of the typical Qt application, find the correct solution and change Equalizer accordingly. To that end, can you write down what you want to do in your application? My feeling is that one would want to leave the event handling completely to Qt (in the main thread), and only catch the resize/close events to give update Equalizer entities. > So, am I missing something here? No, this hasn't been a use case yet. HTH, Stefan. _______________________________________________ eq-dev mailing list [email protected] http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev http://www.equalizergraphics.com

