a simple spectrum analyzer in Qt