[Qt-interest] error: passing `const QLabel' as `this' argument of `void QLabel::setText(const QString&)' discards qualifiers
navid navid
n_nnavid at yahoo.com
Fri Oct 30 23:49:27 CET 2009
Hello,
please comments for removing the error:
void MyClass::MyFunction(QList<QCheckBox> * checkbox_list, QList<QLabel> * label_list)
{
for(int i=0;i<checkbox_list->count() ;i++)
if (checkbox_list->at(i).checkState()){
label_list->at(i).setText("checked"); // error: passing `const QLabel' as `this' argument of `void QLabel::setText(const QString&)' discards qualifiers
}
}
Thanks in advance
n. navid
More information about the Qt-interest-old
mailing list