Thank you! It worked.
[quote author="mlong" date="1335823162"]Make your gauges member variables so they are accessible throughout your class.
Then create a slot to do that specific task. For instance:
@
// slot:
void setValuesOnTimeout() {
gauge1->updateValues(30);
gauge2->updateValues(30);
}
@
Then connect like:
@
connect(timerRand,SIGNAL(timeout()),this,SLOT(setValuesOnTimeout()));
@
Edit:
Alternately... (I think this might work, but I haven't tried it...)
Make the default values on your updateValues slots = 30.
Then just connect:
@
// These will use the default value of 30
connect(timerRand,SIGNAL(timeout()),gauge1,SLOT(updateValues()));
connect(timerRand,SIGNAL(timeout()),gauge2,SLOT(updateValues()));
@[/quote]