Centre widget on parent widget without layout
问题 I am adding a widget to a parent widget without the use of a layout (because I'm using some animations that conflict with what the layout try to do). I am trying to understand what I need to do to align the child widget to it's parent manually (centre it horizontally and vertically even when the parent widget is resized). I've tried calculating the position myself and using QWidget.move() and QWidget.setGeometry() , but neither worked properly as I seem to be unable to get the correct parent