I have the following setup within Qt
...
};
class Editor : public QMainWindow {
...
};
To copy to clipboard, switch view to plain text mode
Within this Editor class, i create a SceneWidget which is defined as
...
};
class EditorSceneWindow : public QDockWidget {
...
};
To copy to clipboard, switch view to plain text mode
Within the EditorSceneWindow i have a custom Direct3D widget defined as
class D3DRenderWidget
: public QWidget {...
};
class D3DRenderWidget : public QWidget {
...
};
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.
Bookmarks