fixed error message about QTimers by ensuring every widget has a parent