Hi,
Quote Originally Posted by luche View Post
I'm now getting back in shape by learning to program with Qt4.
Remember that in order to be successful with Qt you need to know C++. Qt is not a programming language.

cannonfield.cpp: In member function 'QRect CannonField::shotRect() const’:
cannonfield.cpp:134: erreur: passing 'const QVector<QPoint>' as ‘this’ argument of ‘void QVector<T>:ush_back(const T&) [with T = QPoint]’ discards qualifiers
You are trying to modify a member variable (m_cheatTrajectoryPt) in a const method (CannonField::shortRect). A const method shouldn't change the state of an object.