QGlWidget issue on drag and drop
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.
Re: QGlWidget issue on drag and drop
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?
Re: QGlWidget issue on drag and drop
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?
1 Attachment(s)
Re: QGlWidget issue on drag and drop
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
Attachment 9367
Re: QGlWidget issue on drag and drop
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