No doubt most of us know of using labels with dreaded goto statement and inside classes we label parts as private:/protected:/public: but learning QT atm I see the following:
PHP Code:
class CannonField : public QWidget {
public:
... usual bunch of methods
// but what use is a public label here ?
public slots:
void setAngle(int angle);
void setForce(int force);
// and another label here?
signals:
void angleChanged(int newAngle);
void forceChanged(int newForce);
protected:
... then back on familiar terrain
if I take out it won't compile
Bookmarks