TomographicImaging / eqt

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

Add method for adding separator to FormWidget #28

Closed lauramurgatroyd closed 2 years ago

lauramurgatroyd commented 3 years ago

Currently to add a separator to the form widget you have to do:

frame = QFrame()
frame.setFrameShape(QFrame.HLine)
form.addSpanningWidget(frame, 'seperator1')

It would be nice to add a method so we could just do: form.addSeparator() and it would add a horizontal separator to the form, and give it an automatic name in the list of widgets e.g. separator1, separator2 etc.

lauramurgatroyd commented 2 years ago

Closed by #30