Quote Originally Posted by mickey
I insert butt21 from designer....
In that case maybe this is wrong:
Qt Code:
  1. my = (myMainForm*) this->topLevelWidget();
To copy to clipboard, switch view to plain text mode 
What happens when you use dynamic_cast?
Qt Code:
  1. my = dynamic_cast< myMainForm*>( topLevelWidget() );
  2. Q_CHECK_PTR( my );
To copy to clipboard, switch view to plain text mode