Grinchman
9th June 2011, 07:34
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:
void MainWindow::setParentWindowHandle(fVoid *parent)
{
create((WId)((HWND)parent));
}
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?
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:
void MainWindow::setParentWindowHandle(fVoid *parent)
{
create((WId)((HWND)parent));
}
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?