You have a strange construction. Your class inherits QMainWindow but you show the object loaded with QtUiTools. Are you sure this is what you want?