A student from a primary school north of Brisbane is recovering in hospital after allegedly being stabbed with a pair of scissors by a classmate.