connect(obj1_0, SIGNAL(sig1()), this, SLOT(myslot()));//obj1_0 is a type of Class1
connect(obj1_1, SIGNAL(sig1()), this, SLOT(myslot()));
connect(obj1_2, SIGNAL(sig1()), this, SLOT(myslot()));
connect(obj1_3, SIGNAL(sig1()), this, SLOT(myslot()));
connect(obj2_0, SIGNAL(sig2()), this, SLOT(myslot()));//obj2_0 is a type of Class2 deference from Class1
connect(obj2_1, SIGNAL(sig2()), this, SLOT(myslot()));
connect(obj2_2, SIGNAL(sig2()), this, SLOT(myslot()));
connect(obj2_3, SIGNAL(sig2()), this, SLOT(myslot()));
.
.
.
.
connect(obj5_0, SIGNAL(sig5()), this, SLOT(myslot()));//obj5_0 is a type of Class5 deference from Class1, Class2, Class3, Class4
connect(obj5_1, SIGNAL(sig5()), this, SLOT(myslot()));
connect(obj5_2, SIGNAL(sig5()), this, SLOT(myslot()));
connect(obj5_3, SIGNAL(sig5()), this, SLOT(myslot()));
connect(obj1_0, SIGNAL(sig1()), this, SLOT(myslot()));//obj1_0 is a type of Class1
connect(obj1_1, SIGNAL(sig1()), this, SLOT(myslot()));
connect(obj1_2, SIGNAL(sig1()), this, SLOT(myslot()));
connect(obj1_3, SIGNAL(sig1()), this, SLOT(myslot()));
connect(obj2_0, SIGNAL(sig2()), this, SLOT(myslot()));//obj2_0 is a type of Class2 deference from Class1
connect(obj2_1, SIGNAL(sig2()), this, SLOT(myslot()));
connect(obj2_2, SIGNAL(sig2()), this, SLOT(myslot()));
connect(obj2_3, SIGNAL(sig2()), this, SLOT(myslot()));
.
.
.
.
connect(obj5_0, SIGNAL(sig5()), this, SLOT(myslot()));//obj5_0 is a type of Class5 deference from Class1, Class2, Class3, Class4
connect(obj5_1, SIGNAL(sig5()), this, SLOT(myslot()));
connect(obj5_2, SIGNAL(sig5()), this, SLOT(myslot()));
connect(obj5_3, SIGNAL(sig5()), this, SLOT(myslot()));
To copy to clipboard, switch view to plain text mode
Bookmarks