I have exactly 15 buttons in the list
But you've hardcoded it, that's really bad habit, better use the count() method:
for(int i=0; i<comboList.count(); i++){
connect(comboList.at(i),SIGNAL(currentIndexChanged (int)),this,SLOT(this->comboChange()));
}
for(int i=0; i<comboList.count(); i++){
connect(comboList.at(i),SIGNAL(currentIndexChanged (int)),this,SLOT(this->comboChange()));
}
To copy to clipboard, switch view to plain text mode
I agree with SixDegrees, add print (qDebug()) statements to know where it fails exactly.
Bookmarks