CodePudding user response:
You can define an array of instruction, then define a signal and slot function and parameters for the Int said index a sent instructions.
QString inst [20]=
{
"Inst1,"
"Inst2,"
.
};
Signals:
Void nextInst (int I);
Slots:
Void Sendslot (int I);
Send (inst [I])