#ifndef QASCENSOR_H #define QASCENSOR_H #include #include #include class QAscensor : public QGraphicsRectItem { public: QAscensor(int posX, int posY,int ancho, int alto); void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); protected: void advance(int phase); private: int speed = -50; }; #endif // QASCENSOR_H