A man accused of the rape and indecent treatment of a child has been flown to Cairns by Queensland detectives to appear in court.