I have a problem here, I have 3 QtScrollDials inside X class. I edited the updateLabel slot of QtScrollDials class so when it updates the label it also sends a signal to X class, so that I can get its value and set my QLCDNumber accordingly.
void QtScrollDial::updateLabelValue()
{
m_label
->setText
(QString::number(value
()));
emit updateDisplaySignal_valueChangedDahgan(value());
}
void QtScrollDial::updateLabelValue()
{
m_label->setText(QString::number(value()));
emit updateDisplaySignal_valueChangedDahgan(value());
}
To copy to clipboard, switch view to plain text mode
The problem I have is that I have 3 dials, not one, for each of these dials I need to emit 3 different signals so that I can understand which dial sent the signal.
do have any idea how I can do that?
Bookmarks