Passing a Windows handle a widget
-
HI
I am looking at software (Quantum GIS) at the moment, a GIS renderer that renders to a QWidget, and i would like it to render to a panel on a delphi window.Is it possible to pass the panel's handle (a windows HDC handle) to a QWidget during initialization time , and that all stuff that is rendered to the widget will then render in the Delphi application's panel?
This is all in windows xp, and will later have to run on windows7 as well. -
Nope.
-
Not even when i pass the HDC (windows handle) through with the help of a dll?
-
No, AFAIK at least, Qt can not draw on foreign surfaces. I have not come across a method in QWidget that would suggest that you can pass in a window handle to make Qt work and draw on that.
-
As i know you can render QWidget as a bitmap and then render this bitmap on another window.