How to make the child(Qlistwidget) fill the blank part of the parent(QStackedWidget)?
#MainWindow code from main_ui import Ui_MainWindow from widgets.subwidgets import SubWidget class MainWindow(QMainWindow): def __init__(self): QMainWindow.__init__(self) self.ui = Ui_MainWindow() self.ui.setupUi(self) global widgets widgets = self.ui # APPLY TEXTS self.setWindowTitle(title) widgets.titleRightInfo.setText(description) self.ui.extraContent = SubWidget(self.ui.extraContent) #####******this # self.ui.extraContent is QStackedWidget. #subwidget class SubWidget(QStackedWidget): def __init__(self,parent=None): super(SubWidget, self).__init__(parent) self.parent = parent self.init_ui() self.setCurrentIndex(0) def init_ui(self): # create mainwindow #self.page1 … Read more