Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to add dock widget to dock container #398

Merged
merged 1 commit into from
Feb 6, 2022
Merged

Add method to add dock widget to dock container #398

merged 1 commit into from
Feb 6, 2022

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