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

Widgets do not stretch when screen is stretched #89

Open
prjemian opened this issue May 11, 2022 · 5 comments
Open

Widgets do not stretch when screen is stretched #89

prjemian opened this issue May 11, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@prjemian
Copy link
Contributor

When a screen is displayed, the widgets do not stretch with the screen window.

As drawn initially:
as-is

Stretched:
stretched

@prjemian prjemian added the bug Something isn't working label May 11, 2022
@prjemian prjemian added this to the initial release milestone May 11, 2022
@prjemian prjemian self-assigned this May 11, 2022
@prjemian
Copy link
Contributor Author

Stretchability comes from putting widgets into layouts. Will prototype with the converted motorxU.ui screen. Need to ensure that layouts have zero border size so that visual arrangement is not distorted.

@prjemian
Copy link
Contributor Author

Here is a discussion how to override. As it says, it won't be easy:

https://forum.qt.io/topic/73488/how-to-automatically-resize-widgets-when-window-is-resized-without-layout/2

@prjemian
Copy link
Contributor Author

prjemian commented May 12, 2022

Possibly embedding the MEDM screen within a Qt custom layout will satisfy this issue.

@prjemian
Copy link
Contributor Author

On discussion, PyDM has a FlowLayout(QLayout) that may be a suitable example for starting this one. Make a new issue and develop in the PyDM repository under pydm/layouts.

@prjemian
Copy link
Contributor Author

Once that layout manager is complete, use it when writing screens here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant