PDA

View Full Version : QGraphicsView, OpenGL widgets and event handling



Groovounet
12th January 2010, 19:28
Hi,

I would like to create a simple image viewer application where the images are display with OpenGL but I also would like to be able to have these images handling event so that the user will be able to some operations on this image.

I create a QGraphicsView with a QGraphicsScene but it seems that my OpenGL renderer can't interact with the QWidget I added in the QGraphicsScene. Is it possible or not?

Can I create my own widget so that my OpenGL renderer takes the responsibility of rendering the widget and keep Qt handling the events? (Any transformation synchronization system?)

Hope there are answers to this ... not sure.
Thanks,
Christophe

wysota
12th January 2010, 20:32
Please provide some code. It's hard to understand what your problem is.

Groovounet
12th January 2010, 21:52
Thanks but I found what I was looking for (hopefully!)

http://labs.trolltech.com/blogs/2008/12/02/widgets-enter-the-third-dimension-wolfenqt/