PDA

View Full Version : Problems connecting an array



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.

Kumosan
27th April 2010, 16:05
myIAL[0] = undefined
myIAL[1] = undefined
myIAL[2] = undefined
myIAL[3] = undefined
myIAL[4] = undefined
myIAL[5] = new IAL

You get the message?

td
27th April 2010, 16:10
Well, now I'm embarrassed!

Thanks a lot.