PDA

View Full Version : Set a window as child at runtime



sabeesh
26th November 2007, 08:42
Hi,
In my program, When I load the program, first I open a window and read some values from that window ( default values) as close that window and load the main window. After that I load another window from that main window. I need to load the first window ( which one I load first time ) from the new window as the child window of the new one. I can show that window using show(). But it is not the child winodw. How can I set the first window, which one is closed now, as the child window of the current window?
Please help me....

wysota
26th November 2007, 09:30
Use QWidget::setParent() to reparent the window to the newly opened one.