Hello all!

I have a QRect and when I try to setRect it return this error

/QT/Projetos/VisaoFinanceira/fluxocaixawidget.cpp:174: error: member function 'setRect' not viable: 'this' argument has type 'const QRect', but function is not marked const
fluxoRect.at(i).setRect(7,7,7,7);

Thanks.

Here is the code:
Qt Code:
  1. QList<QRect> fluxoRect;
  2.  
  3. fluxoRect.append(QRect(0,0,0,0));
  4.  
  5. fluxoRect.at(i).setRect(7,7,7,7);
To copy to clipboard, switch view to plain text mode