ShapeShiftme
8th May 2011, 03:27
Good day all.
This is my problem.
I have a page that is a subwindow of mdi1 in my code. this page is opened from the tool bar usinf the following code
menu_reports *Menu = new menu_reports;
ui->mdi1->addSubWindow(Menu);
Menu->showMaximized();
This works fine. but on this page i have another button that must open another window but it must also be pen as a subwindow of mdi1.
So what i would like to know is how do i reference mdi from the open form.
as the following does not work
parent.mdi1
parentwidget.mdi1
Any help will be greatly appreciated.
Regards
This is my problem.
I have a page that is a subwindow of mdi1 in my code. this page is opened from the tool bar usinf the following code
menu_reports *Menu = new menu_reports;
ui->mdi1->addSubWindow(Menu);
Menu->showMaximized();
This works fine. but on this page i have another button that must open another window but it must also be pen as a subwindow of mdi1.
So what i would like to know is how do i reference mdi from the open form.
as the following does not work
parent.mdi1
parentwidget.mdi1
Any help will be greatly appreciated.
Regards