[eq-dev] Qt integration
m0bl0
treib at in.tum.de
Thu Jul 16 14:28:56 CEST 2009
Hello everyone,
I've been working on a Qt integration for Equalizer. So, I implemented an
eq::OSWindow for Qt and overloaded eq::Window::configInitOSWindow to create
my QtWindow. I can get Equalizer to render into the Qt widget, but now 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. 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.
So, am I missing something here? Is there a better approach to event
handling? Or was something like this just never anticipated?
Thanks,
Marc
--
View this message in context: http://n2.nabble.com/Qt-integration-tp3268114p3268114.html
Sent from the Equalizer - Parallel Rendering mailing list archive at Nabble.com.
More information about the eq-dev
mailing list