qtui: Set parent object instead of deleting widgets manually.