PDA

View Full Version : Embed dialog in main window



The_Fallen
16th June 2010, 14:51
Hi,

I've got a Qt app here that has grown quite large already. Especially the number of dialogs that the user has open simultaneously has increased drastically.
So I want to do some redesign and embed some of the dialogs into the main window. Of course, just adding a dialog to the main window's layout doesn't work. But is there another simple way to do this? I'd like to change as little code as possible...

Cheers,
fallen

Ginsengelf
16th June 2010, 15:06
Hi, you can use QDockWidgets. Change your dialog's base class to QWidget and create a new dock window for some/each/the-number-you-like dialogs.

Ginsengelf