I am trying to create a small application using Qt. What I want to do is to display in a dock widget a 3D Interface using DirectX11
, other widgets in the QMainWindow
will have properties to modify the behavior of what is been displayed in DX11
.
The problem I am facing is that when I add a QDockWidget
to QMainWindow
, the dockWidgetContents
function windowHandle
returns NULL
.
I am using an example from Get HWND on windows with Qt5 (from WId) to get the HWND
. But if the function return NULL
it will go up and get the HWND
of the QMainWindow
.
Is there any way to force a QWidget
to have its own window handle?
Thanks for any advice!