Sorry i need to call a function of MainWindow on Click on OK Button. Below is code i used

MyClass my;
connect(uiconfig.okButton, SIGNAL(clicked()), &my, SLOT(Test()));

But on click on Button it doesn't goes inside Test function. Please let me know.

Thanks,