TomographicImaging / eqt

A number of templates and tools to develop Qt GUI's with Python effectively.
Other
2 stars 3 forks source link

Allow adding a widget to form with spanning role #14

Closed lauramurgatroyd closed 3 years ago

lauramurgatroyd commented 3 years ago

Closes #10.

Adds option to set layout='form' or layout='vertical' when adding widget to FormDialog.

Update [4/8/21]: To avoid breaking backwards compatability, I added a new method: addSpanningWidget which allows a widget with spanning role to be added to the form.

Previously, these changes broke compatibility: In UIFormWidget I had to change the order of the input parameters to addWidget, because I made qlabel an optional kwarg because it isn't needed if we have a widget with spanning role. This breaks backwards compatibility.

paskino commented 3 years ago

If this breaks backward compatibility we need to do a final release (tag) and then merge.

lauramurgatroyd commented 3 years ago

Working on this to prevent breaking backwards compatability

lauramurgatroyd commented 3 years ago

Updated description to reflect new changes