Uche Ikpeazu and Steven Naismith both scored twice and Ben Garuccio was also on target for Craig Levein's men as ICT were knocked out.
The result was also good news for Partick Thistle, who are into the second round as one of the four best runners-up.