QBluetoothLocalDevice cannot find Bluetooth local device
-
Hi!
QBluetoothLocalDevice::isValid() always returns false on computer with Windows 7 x64 and Broadcom BCM2070 Bluetooth 2.1+EDR USB Device. But Windows finds Bluetooth devices and can communicate with them.Qt Bluetooth examples also don`t work. I am using Qt 5.2 with MSVC 2010 x86.
Code:
@ QBluetoothLocalDevice localDevice;
QString localDeviceName;// Check if Bluetooth is available on this device if (localDevice.isValid()) { // Turn Bluetooth on localDevice.powerOn(); // Read local device name localDeviceName = localDevice.name(); qDebug() << localDeviceName; // Make it visible to others localDevice.setHostMode(QBluetoothLocalDevice::HostDiscoverable); } else { qDebug() << "Bluetooth is not available on this device"; }@
-
Hi,
As per "this":http://qt-project.org/wiki/New-Features-in-Qt-5.2#a12a092a739cea3499350adb459d86b0 bluetooth is supported only for Linux/Bluez 4.x and BlackBerry.