You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
395 B

#ifndef MYRECT_H
#define MYRECT_H
#include <QGraphicsPixmapItem>
#include <QObject>
#include <QMediaPlayer>
class MyRect: public QObject, public QGraphicsPixmapItem {
Q_OBJECT
public:
MyRect(QGraphicsItem *parent=0);
void keyPressEvent(QKeyEvent* event);
public slots:
void spawn();
private:
QMediaPlayer* bulletsound;
QAudioOutput *audioOutput;
};
#endif // MYRECT_H