Setup: Qt 4.4.3, using visual studio 2005

I have an app ui file (which is empty) and I want to add another centralWidget UI file on top of it (so when I maximize I can have a black background in my app ui and my centralWidget UI can be center screen. I am trying to use setCentralWidget() for this. If I explained things correctly, is this the path I want to follow? I cant even get a button to display in the central widget:

Qt Code:
  1. QApp::QApp(QWidget *parent, Qt::WFlags flags)
  2. : QMainWindow(parent, flags)
  3. {
  4. ui.setupUi(this);
  5. CentralWidget cw;
  6. b.setGeometry(20,20,20,20);
  7. b.setEnabled(true);//.show();
  8. setCentralWidget( &b );
  9. }
To copy to clipboard, switch view to plain text mode 

Any help is appreciated. Thank you!