TemporalBeing
7th April 2009, 19:41
I want to create a dockable area in my Qt4-based application. I am aware of Q3DockArea, and would rather not use that, but it does seem to provide what I want - though I want to work with QDockWidgets instead.
I realize QMainWindow handles dockable widgets itself, but I don't want to have yet another main window in my application - I already have one, and this would be embedding one inside another - I want this as part of the central widget.
Background:
The application uses a QMainWindow for its main interface. The central widget of that main window is a QStackWidget. Each QWidget that is added to the QStackWidget is providing some specific functionality, one of which is the primary screen for the application. I'd really like to have the primary screen be something that is more user configurable (think like how KDevelop and Visual Studios IDEs) where the user can rearrange the view - place things where they want them, move them around, snap things together and move them as a block, etc.
I know the dock area won't provide everything (e.g. the snap together and move as a block), but I'd rather not implement anything more than I have to - I don't have the time to spare.
I know I can implement something using the QGridLayout; but a Qt4 QDockArea would probably do best. (Think of it as the central widget.)
I'm sure other people out there would like to do something similar. Is there anything that already exists that does this?
I realize QMainWindow handles dockable widgets itself, but I don't want to have yet another main window in my application - I already have one, and this would be embedding one inside another - I want this as part of the central widget.
Background:
The application uses a QMainWindow for its main interface. The central widget of that main window is a QStackWidget. Each QWidget that is added to the QStackWidget is providing some specific functionality, one of which is the primary screen for the application. I'd really like to have the primary screen be something that is more user configurable (think like how KDevelop and Visual Studios IDEs) where the user can rearrange the view - place things where they want them, move them around, snap things together and move them as a block, etc.
I know the dock area won't provide everything (e.g. the snap together and move as a block), but I'd rather not implement anything more than I have to - I don't have the time to spare.
I know I can implement something using the QGridLayout; but a Qt4 QDockArea would probably do best. (Think of it as the central widget.)
I'm sure other people out there would like to do something similar. Is there anything that already exists that does this?