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:

Qt Code:
  1. QString s = "test";
  2. listparc->at(0).replace(0, s);
To copy to clipboard, switch view to plain text mode 

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