td
27th April 2010, 15:54
Hi guys,
I'm having difficulty at the moment when attempting to connect an array signal to another signal. I have a single instance of the class which works fine but the array just can't be connected.
MyClass::MyClass(QWidget *parent)
: QWidget(parent)
{
masterIAL = new IAL;
myIAL[5] = new IAL;
connect(masterIAL, SIGNAL(mySignalOne(QString, int)),myMM, SLOT(handleSignal(QString, int)));
// this is where I'm having problems
connect(myIAL, SIGNAL(value(int, int, ushort)), this, SIGNAL(sendValue(int, int, ushort)));
}
{
I tried other ways of connecting (e.g. myIAL[] ) to no luck.
Any help appreciated.
I'm having difficulty at the moment when attempting to connect an array signal to another signal. I have a single instance of the class which works fine but the array just can't be connected.
MyClass::MyClass(QWidget *parent)
: QWidget(parent)
{
masterIAL = new IAL;
myIAL[5] = new IAL;
connect(masterIAL, SIGNAL(mySignalOne(QString, int)),myMM, SLOT(handleSignal(QString, int)));
// this is where I'm having problems
connect(myIAL, SIGNAL(value(int, int, ushort)), this, SIGNAL(sendValue(int, int, ushort)));
}
{
I tried other ways of connecting (e.g. myIAL[] ) to no luck.
Any help appreciated.