<p>With wxWidgets I use the following code:</p>

<pre><code>HWND main_window = ...
...
wxWindow *w = new wxWindow();
wxWindow *window = w->CreateWindowFromHWND(0, (WXHWND) main_window);
</code></pre>

<p>How do I do the same thing in Qt? The <code>HWND</code> is the handle of the window I want as the parent window for the new QtWidget.</p>

Have you tried the
```
QWinWidget
```
class from the
Qt/MFC Migration Framework
?