Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[solved] QAudioDeviceInfo::availableDevices - no device found, if start on PC without Qt installed
Qt 5.3.2 (mingw482_32)
This sample code :
foreach (const QAudioDeviceInfo &deviceInfo, QAudioDeviceInfo::availableDevices(QAudio::AudioOutput))
ui->terminal->append ( "Device name: " + deviceInfo.deviceName());
works fine if start on PC where Qt installed. If I start .exe on PC without Qt, QAudioDeviceInfo::availableDevices return 0 audio output device.
My PC (with Qt) is Windows 7 (64), other PC is Windows XP, 7 (32 bit)
works the same.
All Ok on my PC
And Empty list on other PC
Hi and welcome to devnet,
Are you sure you deployed your application correctly with all dlls and plugins needed ?
I tried to act by analogy with Qt 5.0.2
My App folder contains the following files:
Application to be started, but there are problems described above.
After that I copy Qt5.3.2\Tools\QtCreator\bin\qt.conf file App folder
and copy Qt5.3.2\5.3\mingw482_32\plugins folder to App folder :
... and then everything was fine
You should correct the qt.conf file since it's tailored for Qt Creator.
You're welcome !
Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)