22 #include <QGraphicsScene> 23 #include <QScopedPointer> 25 #include <QTouchEvent> 53 const QColor &keyPressedColor = QColor(),
93 bool isKeyboardEnabled()
const;
103 void showNoteOn(
const int note, QColor color,
int vel = -1);
104 void showNoteOn(
const int note,
int vel = -1);
111 void keyOn(
const int note);
112 void keyOff(
const int note);
128 void setKeyPicture(
const bool natural,
const QPixmap &pix);
129 QPixmap getKeyPicture(
const bool natural);
131 void setUseKeyPictures(
const bool enable);
132 bool getUseKeyPictures()
const;
134 void saveData(QByteArray &ba);
135 void loadData(QByteArray &ba);
153 void noteOn(
int n,
int v);
170 void showKeyOn(PianoKey *key, QColor color,
int vel);
174 void keyOn(PianoKey *key);
175 void keyOff(PianoKey *key);
176 void keyOn(PianoKey *key, qreal pressure);
177 void keyOff(PianoKey *key, qreal pressure);
181 void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent)
override;
194 class PianoScenePrivate;
195 QScopedPointer<PianoScenePrivate> d;
The QGraphicsScene class provides a surface for managing a large number of 2D graphical items...
The QObject class is the base class of all Qt objects.
Declaration of the PianoKey class.
Declaration of the KeyLabel class.
The QEvent class is the base class of all event classes.
Piano Palette declarations.