[Qt-interest] child window in MDI can't be dragged like DockWidet

Sean Harmer sean.harmer at maps-technology.com
Wed Dec 9 10:34:55 CET 2009


Hi,

On Wednesday 09 December 2009 09:23:47 yanqzhi at gmail.com wrote:
> hello,
> 
> I want to create a application with MDI, but the child mainwindows can't be
>  restricted within the  boundary of MDI's mainwindow. The child mainWindows
>  can be dragged like QdockWidget.How can I do it?

You have conflicting requirements. MDI provides an MDI area that restricts 
where the MDI windows can be placed.

If you want to be able to place your top-level windows anywhere, then just use 
multiple instances of QMainWindow - or your own class derived from 
QMainWindow.

Sean



More information about the Qt-interest-old mailing list