Hi!

What I have:
non-Qt Windows application that pass HWND of its main window to my Qt dll.

My goal:
To create a Qt window which will be act as MDI window in MdiArea. It means that my Qt window must have a menu bar, standart close/maximize/minimize buttons and been able to be moved along the non-Qt window as in MdiArea.

What have I tried:
When I get HWND I do kind of trick:
Qt Code:
  1. void MainWindow::setParentWindowHandle(fVoid *parent)
  2. {
  3. create((WId)((HWND)parent));
  4. }
To copy to clipboard, switch view to plain text mode 

But this code just integrate my window into the non-Qt window as a simple child widget...
And other tricks with using MdiArea, QDialog are failed too...

Is it possible to make MDI-like window?