Qt: Get QAudioDeviceInfo for input device by name
<p>Is there a Qt function to get an audio input device by it's <code>QString</code> name? Related functions I've found:</p>

<ul>
<li><a href="https://doc.qt.io/qt-5/qaudiodeviceinfo.html#defaultInputDevice" rel="nofollow noreferrer">QAudioDeviceInfo QAudioDeviceInfo::defaultInputDevice()</a></li>
<li><a href="https://doc.qt.io/qt-5/qaudiodeviceinfo.html#availableDevices" rel="nofollow noreferrer">QList&lt;QAudioDeviceInfo&gt; QAudioDeviceInfo::availableDevices()</a>.</li>
<li><a href="https://doc.qt.io/qt-5/qaudiorecorder.html#setAudioInput" rel="nofollow noreferrer">void QAudioRecorder::setAudioInput(const QString &amp;name)</a></li>
</ul>

<p><code>QAudioRecorder::setAudioInput()</code> is close to what I want but AFAIK there is no way I can get a <code>QAudioDeviceInfo</code> out of <code>QAudioRecorder</code>.</p>

<p>I could iterate through the <code>QList</code> returned by <code>QAudioDeviceInfo::availableDevices()</code>  but was hoping for something better.</p>