I resolve it changing MyWidget declaration to pointer (below coded)
Qt Code:
  1. class myMainForm : public MainForm
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. myMainForm( QWidget* parent = 0, const char* name = 0, WFlags fl = WType_TopLevel );
  7. ~myMainForm();
  8. void init();
  9. //MyWidget top
  10. MyWidget* top;
  11. };
To copy to clipboard, switch view to plain text mode 
But now my problem don't chage. I do it for to do this:
Qt Code:
  1. myMainForm::myMainForm( QWidget* parent, const char* name, WFlags fl )
  2. : MainForm( parent, name, fl )
  3. {
  4. printf("myMainformt\n");
  5. *top = MyWidget(this, "top shared", this->myWidget1);
  6. this->WidgetStack->addWidget(top);
  7. }
To copy to clipboard, switch view to plain text mode 
This two istruction cause some 'debug error' when I launch app....
The same if I code these two in main.cpp