Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QList and QPoints error: passing 'const QPointF' as 'this' argument of 'qreal& QPointF::rx()' discards qualifiers
metty last edited by metty
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.
alex_malyu last edited by alex_malyu
I just want to add that you should not use non const methods when you can use const methods anyway.
metty last edited by
super, thank you! that solved my litttle problem.