qt5.7 on fedora
Checked this audio-to-chart example and found that QIODevice::writeData is used for reading mic input. Since it works and data from mic is being plotted, the function is obviously not writing but reading the data. But QIODevice doc page clearly states:
[pure virtual protected] qint64 QIODevice::writeData(const char *data, qint64 maxSize)
Writes up to maxSize bytes from data to the device. Returns the number of bytes written, or -1 if an error occurred.
So my question is why/how does that work?