View Full Version : QWorkSpace parent type optional?

19th September 2006, 01:24

Maybe this an odd question ...

Does QWorkSpace have to be the child of a QMainWindow? Or, does it make since for it to be the child of another widget, say a QGridLayout that would be the child of a QMainWindow?

I'm trying to build a main window that has an always-present tree-view to the left with a workspace to the right ... and the customary main window menus, toolbars, and status bar.


19th September 2006, 01:45
Qt docs say:
The workspace itself is an ordinary Qt widget. It has a standard constructor that takes a parent widget. Workspaces can be placed in any layout, but are typically given as the central widget in a QMainWindow