BCDA-APS / adl2pydm

Convert MEDM's .adl files to PyDM's .ui format
Other
0 stars 4 forks source link

Widgets do not stretch when screen is stretched #89

Open prjemian opened 2 years ago

prjemian commented 2 years ago

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

As drawn initially: as-is

Stretched: stretched

prjemian commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

prjemian commented 2 years ago

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 commented 2 years ago

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