Mar-22-2020, 10:03 PM
Thank you (again) for your help. When executing your code, it displays the Qtableview in another window.
And I also have this error message in terminal.
And I also have this error message in terminal.
Error:QLayout: Attempting to add QLayout "" to Window1 "", which already has a layout
Window1 is the name of my MainWindow class :class Window1(QMainWindow): def __init__(self): super().__init__() self.initUI() def initUI(self):You are right, I plan to add stuff in the bottom but what if I don't want the other widgets to fit with main window ? they will be hidden by Qtableview ? And if it put a Qframe, that I add to layout manager, since I don't add geometry, will it share the place equaly with the tableview ?