Qt does not natively support drawing heatmaps / spectrograms to a QChart.
This gist implements a self contained heatmap function that draws your data to a QImage using the jet color scheme.
The image is set as the background of the chart.
It also supports labels and value ranges for the axes.