22#include <QGraphicsScene>
23#include <QScopedPointer>
52 const QColor& keyPressedColor = QColor(),
92 bool isKeyboardEnabled()
const;
102 void showNoteOn(
const int note, QColor color,
int vel = -1 );
103 void showNoteOn(
const int note,
int vel = -1 );
110 void keyOn(
const int note );
111 void keyOff(
const int note );
150 void showKeyOn( PianoKey *key, QColor color,
int vel );
151 void showKeyOn( PianoKey *key,
int vel );
154 void keyOn( PianoKey *key );
155 void keyOff( PianoKey *key );
156 void keyOn( PianoKey *key, qreal pressure );
157 void keyOff( PianoKey *key, qreal pressure );
161 void mouseMoveEvent ( QGraphicsSceneMouseEvent *mouseEvent )
override;
162 void mousePressEvent ( QGraphicsSceneMouseEvent *mouseEvent )
override;
176 class PianoScenePrivate;
177 QScopedPointer<PianoScenePrivate> d;
The QEvent class is the base class of all event classes.
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 KeyLabel class.
Declaration of the PianoKey class.
Piano Palette declarations.