I have some QCheckBox
named from "cb0" to "cb11".
Why get I an error, trying this, or why if thats the reason would it accept no std::strings
?
using namespace std
for(int i = 0; i < 12; i++){
ostringstream strs;
strs << i;
string k = "cb" + strs.str();
QCheckBox *cb = findChild<QCheckBox*>(k);
...
}