PDA

View Full Version : QMdiArea with designer



maximAL
6th September 2007, 18:06
hi,
i'm new to QT4 (user QT3 a while ago) and i'm trying to figure out how to use the QMdiArea widget in combination with the designer.
is there some clean way of inserting MDI areas? so far i only see the possibility of creating a plain SDI window and then restructure it in code to an MDI one.

marcel
6th September 2007, 18:13
You cannot do that. There is no logic in having the possibility to add MDI areas in Designer.
You couldn't add more than one anyway.

If you have to create a MDI interface, then do everything without designer(except maybe some components that don't depend on it).

Regards

wysota
7th September 2007, 08:21
You can place a QFrame on the form, right click it and promote the frame to QMdiArea. Just don't insert any widgets into that frame later (it'll still be a frame in Designer, but will be compiled as QMdiArea).

sunil.thaha
7th September 2007, 12:58
That is clever !!