Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将绘图网格添加到拆分器。我知道如何将垂直(QSplitter(Qt.Vertical))和水平(QSplitter(Qt.Horizontal))布局设置为拆分器,但不确定如何在网格布局中进行设置。
我是这样想的:
self.plot_splitter = QSplitter(Qt.Vertical) self.plot_grid = QGridLayout() self.plot_widget = QWidget() self.plot_widget.setLayout(self.plot_grid) self.plot_splitter.addWidget(self.plot_widget)