我已经创建了一个Q_Main_Window
,我想拉伸其中的按钮,但我不能...您有任何解决方案吗?
class App(QMainWindow):
#Buttons
sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
self.Lat_min = QtWidgets.QDoubleSpinBox(self)
self.layout.addWidget(self.Lat_min)
self.layout.addWidget(self.Lat_max)
self.layout.addWidget(self.Lon_min)
self.layout.addWidget(self.Lon_max)
self.layout.addWidget(self.b1)
self.layout.addWidget(self.b2)
self.setLayout(self.layout)