title: Adding custom widgets to QStackedWidget
body: <p>I'm having difficulty adding a custom widget to a QStackedWidget. I want to include a widget with a different grid layout in this stacked widget.</p>
  
  <p>If someone could show me how to set up the layout (buttons, etc.) inside the stacked widget, that would be even better. The main dialog containing the stacked widget is really simple, and I don't want to clutter it up with tonnes of grid just for one widget inside the stacked widget.</p>
  
  <p>At the moment I'm trying to make the complex widget as a seperate class and insert an instance of this class into the stacked widget using <code>.addWidget()</code> (this doesn't work).</p>
  
  <p>Maybe I'm thinking about it the wrong way?</p>
  
  <p>I'm using PyQt, but C++ answers are acceptable — I can get an idea of how things work by looking at C++ (well, I've been fine so far =s).</p>