According to the QtTranslation documentation this is possible as follows:
//% "%1 my translatable suffix!" QString text = qtTrId("qtn_foo_bar", var);