rename qt API names and fixed NoPack compile err