Hi,
I have a optAction in Mainform that calls an optionDialog (designed from qtDesigner).
In optionDialog when I pusk on save button start the SLOT saveOptions()
I like to do this inside optiondialog.ui.h file:
Qt Code:
  1. #include <qfile.h>
  2. #include <mainform.h>
  3. class MainForm;
  4.  
  5. void optionDialog::saveOptions()
  6. {
  7. MainForm* m;
  8. m->toolBox->show(); //access to mainform
  9. }
To copy to clipboard, switch view to plain text mode 
But this don't compile. Is there a way?