SDL event handling and Qt

Hello,
I have this problem: I managed to insert SDL surface inside an Qt window,
but the SDL part of the application subsequently became unable to handle SDL
events. What causes the problem?

Thanks,
V. Toman–
Vojtech Toman
(mailto:@Vojtech_Toman)

Hello,
I have this problem: I managed to insert SDL surface inside an Qt window,
but the SDL part of the application subsequently became unable to handle SDL
events. What causes the problem?

How did you manage to do this?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Hello,
I have this problem: I managed to insert SDL surface inside an Qt
window, but the SDL part of the application subsequently became unable to
handle SDL events. What causes the problem?

How did you manage to do this?

My app consists of two processes - one represents the qt part (dialogs etc.)
and the other the SDL part. Initially, these two processes created two
separate windows, but during the time, I decided it would be nice to merge
these windows into one window. So I created a qt widget (instance of QWidget,
to be exact) and the second process set its environment variable SDL_WINDOWID
to window id of that widget. That was all - and it worked, except the evend
handling.
I have to find a way how to pass qt events to SDL.

Regards,
V. Toman–
Vojtech Toman
(mailto:@Vojtech_Toman)

Hello,
I have this problem: I managed to insert SDL surface inside an Qt
window, but the SDL part of the application subsequently became unable to
handle SDL events. What causes the problem?

How did you manage to do this?

My app consists of two processes - one represents the qt part (dialogs etc.)
and the other the SDL part. Initially, these two processes created two
separate windows, but during the time, I decided it would be nice to merge
these windows into one window. So I created a qt widget (instance of QWidget,
to be exact) and the second process set its environment variable SDL_WINDOWID
to window id of that widget. That was all - and it worked, except the evend
handling.
I have to find a way how to pass qt events to SDL.

You’ll have to use inter-process-communication to forward the events yourself.
Since the Qt app “owns” the window, only it gets the windows messages for the
window.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment