For my current project in C++ / Qt I need a library (LGPL is preferred) which can calculate a spectrogram from a signal ( basically an array of doubles ). I already use Qwt
It would be fairly easy to put together your own spectrogram. The steps are: