#ifndef SCORE_H #define SCORE_H #include #include #include class Score: public QGraphicsTextItem, QFont{ //score class inherits from QGraphicsTextItem and QFont public: Score(QGraphicsItem *parent=0); //score constructor void increase(); //function that increases the score int getScore(); //function that gets the score private: int score; }; #endif // SCORE_H