[Qt-interest] Widgets inside OpenGL inside Qt form

fungos fungos at gmail.com
Mon Mar 23 01:48:25 CET 2009


Hi, this is my first try with Qt. I aways wanted to use it, now I will,
thanks to Qt Creator! :)
I don't know anything from Qt, and I try to learn using/reading Qt Demo
application.
So I need some help with Qt and OpenGL.

I'm doing some tests with a 2D game framework that I have made using OpenGL
to use Qt.
What I want to achieve is:

1. be able to run Qt widgets inside my library (like debug console, runtime
level editing, etc.).
2. be able to run my library inside a Qt form (a tools and project
management application that actually uses my library to display things).

So far, I got item 1 working based on
http://doc.trolltech.com/qq/qq26-openglcanvas.html and Qt Demo "Boxes". That
is, my OpenGLView is a "QGraphicsScene".
Now, I can't find any sample code that uses a "QGraphicsScene" inside a
form, just QGLWidget ones. How can I do that, so It will share form space
with other Qt widgets and still displaying it's own Qt widgets in OpenGL
mode?


Thank you

-- 
Danny Angelo Carminati Grein
http://danny.bitcrafters.com.br/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090322/a518f375/attachment.html 


More information about the Qt-interest-old mailing list