Hi, I want to add a QTableWidget to an existing window with other labels and button. How can I add the QTableWidget without having to set it as centralwidget and be able to move it and set geometry. Because I am not being able to move the central widget by using self.centralwidget.setGeometry . The error is cannot find reference. Please advise.