Pyqt5 addStretch in between widgets?
问题 I am using a QVBox layout and there are two widgets and a dynamic layout 'layout2' in the layout. Widget1 is fixed on top Widget3 is fixed at the bottom and widget2 is dynamic widget. layout2 is deleted and added each time. The problem here is I am not able to position the widget3 at the bottom as layout2 layout is deleted Widget3 moves to the top. Below is the sample code. class Screen(QWidget): def __init__(self): super(Screen, self).__init__() self.main_layout = QVBoxLayout() widget1 =