August 2018
Intermediate to advanced
534 pages
11h 21m
English
Let's buckle up and do this project! Create a new Qt Widgets Application project named ch11-drum-machine. As usual, add the CONFIG += c++14 in ch11-drum-machine.pro.
Now, create a new C++ class named SoundEvent. Here is SoundEvent.h stripped of its functions:
#include <QtGlobal>
class SoundEvent
{
public:
SoundEvent(qint64 timestamp = 0, int soundId = 0);
~SoundEvent();
qint64 timestamp;
int soundId;
};
This class contains only two public members:
In recording mode, each time the user plays a sound, a SoundEvent is created with ...
Read now
Unlock full access