I have the following setup within Qt

Qt Code:
  1. class Editor : public QMainWindow {
  2. ...
  3. };
To copy to clipboard, switch view to plain text mode 
Within this Editor class, i create a SceneWidget which is defined as

Qt Code:
  1. class EditorSceneWindow : public QDockWidget {
  2. ...
  3. };
To copy to clipboard, switch view to plain text mode 
Within the EditorSceneWindow i have a custom Direct3D widget defined as

Qt Code:
  1. class D3DRenderWidget : public QWidget {
  2. ...
  3. };
To copy to clipboard, switch view to plain text mode 

I create an EditorSceneWindow and set it's parent to MainWindow. In EditorSceneWindow, i create a D3DRenderWidget that initializes my engine.

My problem is that when the application starts up, the size of my Direct3DWidget is 100x30 (Toolbar dimensions of the DockWidget. I know i can set the minimum width/height, however, i want the Direct3DWidget to fill the entire DockWidget. I have tried setting numerous different combos of the QSizePolicy for the Direct3DWidget, as it is the child of the SceneWindow DockWidget.

Thanks in advance.