Qt Window for G3D

91 views
Skip to first unread message

EdwardP

unread,
Jun 27, 2012, 9:55:53 AM6/27/12
to G3D Users
Hello again,

I've started work on a level editor, which would benefit from a more
substantial GUI surround than is usual, and I thought I'd use Qt for
this.

I've created my own G3DWidget, which has a nested, G3D::OSWindow
derived, QtWindow. I've got the basic rendered display up and running
without problem, but I wondered if anyone else has had a crack at this
already and might share their experiences/approach to using G3D within
a Qt framework?

Cheers

E

Corey Taylor

unread,
Jun 27, 2012, 10:37:31 PM6/27/12
to g3d-...@googlegroups.com
I've only done minor attempts many years ago.  You can create your own OSWindow or try to wrap a QtWindow with Win32Window by somehow passing in the handle.  If you use Qt directly and want to use input handling in G3D, you'll have to write a wrapper like we do for OS-keys and SDL.

corey

EdwardP

unread,
Jun 28, 2012, 6:37:20 AM6/28/12
to G3D Users
Thanks for your quick reply Corey. I've gone down the straightforward
OSWindow implementation, which appears to be working fine, at least
for rendering a static scene. I'll follow your advice on wiring up the
input mapping next and see how that goes.

If things all work out OK, I'll post the classes somewhere in case
other people would like to use/improve them.

Cheers

E
Reply all
Reply to author
Forward
0 new messages