How to Insert SDL/OpenGL into QT Window

Does anyone have an example of how to insert an SDL created OpenGL
Window into a QT Gui Window?

Thanks,

Dominique
http://www.DelphiGamer.com := go on, write a game instead;

Hi

I might be shooting myself in the foot here, but I guess that it might be
kinda hard to do. Atleast that’s the case with mixing MFC and SDL. The
reason for this is that MFC uses it’s own hidden main function but SDL wants
its own. Now, I don’t know if the same goes for QT, but that would at least
be my guess. Shoot me if I’m wrong :wink:
Prehaps you are better off just using OpenGL in QT without SDL?

Best regards
Daniel Liljeberg> ----- Original Message -----

From: dominique@savagesoftware.com.au (Dominique Louis)
To:
Sent: Friday, September 19, 2003 11:25 AM
Subject: [SDL] How to Insert SDL/OpenGL into QT Window…

Does anyone have an example of how to insert an SDL created OpenGL
Window into a QT Gui Window?

Thanks,

Dominique
http://www.DelphiGamer.com := go on, write a game instead;


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Dunno about combining SDL + Qt, but I know the Qt does
include an openGL sample in there somewhere… now for
Linux, SDL dosn’t try and shove a main down the
compilers throat… so you’d be able to combine Qt+OGL
for rendering, and still use SDL for the sound or
network backend, for example. It uses some Qt
extension or something. I believe the example is
called QGL or something… I’m booted in windows at
the moment, or else I’d check (I develop exclusivly in
linux at the moment…)> Hi

I might be shooting myself in the foot here, but I
guess that it might be
kinda hard to do. Atleast that’s the case with
mixing MFC and SDL. The
reason for this is that MFC uses it’s own hidden
main function but SDL wants
its own. Now, I don’t know if the same goes for QT,
but that would at least
be my guess. Shoot me if I’m wrong :wink:
Prehaps you are better off just using OpenGL in QT
without SDL?

Best regards
Daniel Liljeberg

----- Original Message -----
From: "Dominique Louis"

To:
Sent: Friday, September 19, 2003 11:25 AM
Subject: [SDL] How to Insert SDL/OpenGL into QT
Window…

Does anyone have an example of how to insert an
SDL created OpenGL
Window into a QT Gui Window?

Thanks,

Dominique
http://www.DelphiGamer.com := go on, write a game
instead;


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Hi Dominique,

Looking on the web I found this page:
http://doc.trolltech.com/2.3/index.html where a full tutorial on OpenGL
and QT is available.

Hope this helps.

Paul Dessart

Dominique Louis wrote:> Does anyone have an example of how to insert an SDL created OpenGL

Window into a QT Gui Window?

Thanks,

Dominique
http://www.DelphiGamer.com := go on, write a game instead;