Move drag and drop images over openGL components

opengl

#1

When dragging drag’n’drop objects through a scene and over a component with an opengl context attached to it the gl component hides the dragged object. Is there a way around this?


#2

The OpenGL context is a heavy weight component, so it actually ‘floats’ above your other components. So, unless you let all of your components be rendered with OpenGL there is no easy way around it i guess.
A hack would be to create another window that follows your mouse while dragging which is on top of all windows.


#3

DragAndDropContainer::startDragging() has a parameter “allowDraggingToExternalWindows”. Set it to true, and it’ll use a heavyweight window for the drag image, so will float over everything.