I don't understand your question exactly, but you're probably worried about the recursive inclusion. Instead of including it in mylightdialog.h, you can predeclare the myMainForm class and then really include it in the .cpp/.cc file. So it would become:

Qt Code:
  1. class myMainForm;
  2.  
  3. myLightDialog::myLightDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
  4. :lightDialog (parent, name, modal, fl) {
  5. _myw = (myMainForm*) parent;
To copy to clipboard, switch view to plain text mode