Hi, I've done this thing; I wonder if could arise a problem...can I avoid _myw with a simple parent() ??? thanks
Qt Code:
  1. #include "mymainform.h"
  2. myLightDialog::myLightDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
  3. :lightDialog (parent, name, modal, fl) {
  4. _myw = (myMainForm*) parent;
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. #include <myLightDialog.h>
  2. myMainForm::myMainForm( QWidget* parent, const char* name, WFlags fl )
  3. : MainForm( parent, name, fl )
  4. {
  5. lightd = new myLightDialog(this);
To copy to clipboard, switch view to plain text mode