Skip to content

Conversation

@BenHetherington
Copy link

Fixes #394, by implementing a method that I suggested there.

This adds a addDockWidgetToContainer() method to CDockManager, which allows a dock widget to be registered with the dock manager, and added to a specific container, even if that container doesn't currently have any DockAreaWidgets.

This is pretty much just a clone of addDockWidget(), but with the ability to specify a container widget instead of a dock area.

This adds a `addDockWidgetToContainer()` method to `CDockManager`, which allows a dock widget to be registered with the dock manager, and added to a specific container, even if that container doesn't currently have any `DockAreaWidget`s.

This is pretty much just a clone of `addDockWidget()`, but with the ability to specify a container widget instead of a dock area.
@githubuser0xFFFF
Copy link
Owner

Thank you for this contribution. A small example that shows the idea of this feature or how to use it would be great.

@githubuser0xFFFF githubuser0xFFFF merged commit 3c4af9c into githubuser0xFFFF:master Feb 6, 2022
luelista pushed a commit to luelista/Qt-Advanced-Docking-System that referenced this pull request Mar 22, 2022
This adds a `addDockWidgetToContainer()` method to `CDockManager`, which allows a dock widget to be registered with the dock manager, and added to a specific container, even if that container doesn't currently have any `DockAreaWidget`s.

This is pretty much just a clone of `addDockWidget()`, but with the ability to specify a container widget instead of a dock area.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How do I programmatically add a dock widget to a dock container widget?

2 participants