PDA

View Full Version : QGlWidget issue on drag and drop



drujma
25th July 2013, 16:47
Hi,

I'm developing an application composed by a QMainWindow and several QDockWidgets. In the main window the central widget is a QGLWidget (there are no other widgets). One of these dock has a drag and drop mechanism which works fine when the widget is docked. When the widget is floating I'm not able to drag and drop. If I remove the OpengGL widget everything works fine. Is it possible that the QGLwidget is responsible for this kind of problem?


Thanks.

saman_artorious
25th July 2013, 20:45
what you mean by "when the widget is floating"?
can you attach a screen shot?
what are you doing in GLWidget?
how does it render?

Seishin
25th July 2013, 21:49
I also have a similar problem on QGraphicsView. When I use QGLWidget as the viewport, items can be dropped on the view, but if I set the viewport to be QWidget, I cannot drop to the view any more. Anyone met this problem before?

drujma
26th July 2013, 08:43
Here comes the screenshot, on the left you can find the floating qdockwidget whereas on the right there's the same application whith the widget docket within the main window. The QGLwidget renders a simple cube every 10ms using a timer but that's not the problem beacause even when I disable the rendering rutine the drag and drop still doesn't work.

thanks

9367

rockdemon
26th July 2013, 10:30
is it worth registering an event filter on all the objects and children and use it to monitor what happens to any drag/drop events by logging which object they're bound for? might get you somewhere while waiting to see if anybody else has an answer?

Rich