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

Initial dock size #95

Closed
AV9 opened this issue Nov 3, 2020 · 3 comments
Closed

Initial dock size #95

AV9 opened this issue Nov 3, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@AV9
Copy link

AV9 commented Nov 3, 2020

Hi,

How can I set the initial size of the docks? Calling the function resize(int w, int h) from the dock widget is not changing anything...

Any suggestion?

Thanks!

@iamsergio iamsergio added the question Further information is requested label Nov 3, 2020
@iamsergio iamsergio self-assigned this Nov 3, 2020
@iamsergio
Copy link
Contributor

Do you mean the initial size when floating (top-level dock widget) or when docked ?
And which version/sha1, thanks

@AV9
Copy link
Author

AV9 commented Nov 3, 2020

When docked.

@iamsergio
Copy link
Contributor

there's no way
Shouldn't be much work to impl. Just not sure what the API should look like though.

@iamsergio iamsergio added enhancement New feature or request and removed question Further information is requested labels Nov 5, 2020
iamsergio added a commit that referenced this issue Dec 27, 2020
addDockWidget() received a AddingOption enumerator. But that
enum isn't enough, as we also want to be able to specify an initial
QSize.

So, instead of adding yet another parameter to addDockWidget(), we
create a struct to old those "initial settings".

Implies a minor source break, but trivial to fix in user code,
just rename the enumerator.

Honouring preferredSize will be a followup.

Needed for issue #95
iamsergio added a commit that referenced this issue Dec 28, 2020
It's another enum that affects the initial sizing.
No behaviour was change in this commit.

Needed for issue #95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants