estanisgeyer
7th March 2008, 17:11
Good day,
I created a functional matrix using a pointer to QList<QStringList>.
I'm having a problem to exchange an item of my QStringList. I am trying:
QString s = "test";
listparc->at(0).replace(0, s);
The listparc is pointer to QList<QStringList>.
But I error in the compilation:
error: passing 'const QStringList' as 'this' argument of 'void QList<T>::replace(int, const T&) [with T = QString]' discards
What is the best way to do that?
Thanks
Marcelo E. Geyer
Brazil
I created a functional matrix using a pointer to QList<QStringList>.
I'm having a problem to exchange an item of my QStringList. I am trying:
QString s = "test";
listparc->at(0).replace(0, s);
The listparc is pointer to QList<QStringList>.
But I error in the compilation:
error: passing 'const QStringList' as 'this' argument of 'void QList<T>::replace(int, const T&) [with T = QString]' discards
What is the best way to do that?
Thanks
Marcelo E. Geyer
Brazil