sudheer168
22nd December 2008, 05:08
Hi ,I am using Qt 4.4.0 .In my application I want to access the members/variables of one dialog class in another dialog class.Now I am able to access the variables/members of Mainwindow class in any other dialog.The code i used to access is shown below
MainWindow *omans = qobject_cast<MainWindow *>(parentWidget());
omans->natimer->stop();
I wrote the above code in other dialog class to access the "natimer " which i was declared in mainwindow.
Now I want to access the member of one dialog class in another dialog class.
I tried the same code to access the member of one dialog class in another dialog class,but the execution get breaks .
So help me to solve the problem.
With Regards,
Sudheer.
MainWindow *omans = qobject_cast<MainWindow *>(parentWidget());
omans->natimer->stop();
I wrote the above code in other dialog class to access the "natimer " which i was declared in mainwindow.
Now I want to access the member of one dialog class in another dialog class.
I tried the same code to access the member of one dialog class in another dialog class,but the execution get breaks .
So help me to solve the problem.
With Regards,
Sudheer.