Qt Bluetooth api
-
I'm new to qt.I'm currently using qt 5.2 .I'm trying to create a test Bluetooth app on my desktop that connects with other Bluetooth enabled devices for communication .the problem I'm having occurs when I use the qbluetoothlocaldevice::isvalid() command returns false all the time and my PC is Bluetooth enabled.
my code snippet:
QBluetoothLocalDevice mydevice;
if (mydevice.is valid()){
printf("A");
}
else {
printf("B");}my result: B
please help
-
Hi and welcome to devnet,
Without any more information about the OS, I suppose you are trying that on windows.
Currently the bluetooth supported platforms are Linux with Bluez >= 4 and Blackberry, support for android is scheduled for 5.3
-
yes I'm on windows.does that mean I can't write any desktop Bluetooth enabled app on windows.
-
No, it means that you currently need to use Windows bluetooth api directly
-
so are there any other qt based api's that are not yet available on windows other than Bluetooth api .if yes please can you give me a short run down list of them
-
Hii herlarbee
Have a look on MSDN for bluetooth for WINDOWS.
hope it helps.
-
thanks so much for your help i so much appreciate