Extract MainUI widget from QtMain