QList and QPoints error: passing 'const QPointF' as 'this' argument of 'qreal& QPointF::rx()' discards qualifiers
I have a QList with QPoints:
Why does this work:
and this not:?
thank you for you help!
atreturns a const reference while
firstcan either return a reference or a const reference and rx is a non const method of QPointF.
I just want to add that you should not use non const methods when you can use const methods anyway.
super, thank you! that solved my litttle problem.