Support of QBluetooth on Windows
-
Hello,
According to QT 5.15.5 documentation on bluetooth (link),
The bluetooth API is available for Windows platforms (UWP and win32).
So i've try to use QT bluetooth file tranfert example on windows platform.
I'm able to compile it and scan for bluetooth connexion.
But when i'm not able to transfer file.
After some investigation, it appears, the method used for tranfer is not available on Windows platform (class QBluetoothTransferManager, method put):QBluetoothTransferReply *QBluetoothTransferManager::put(const QBluetoothTransferRequest &request, QIODevice *data) { #if QT_CONFIG(bluez) QBluetoothTransferReplyBluez *rep = new QBluetoothTransferReplyBluez(data, request, this); connect(rep, SIGNAL(finished(QBluetoothTransferReply*)), this, SIGNAL(finished(QBluetoothTransferReply*))); return rep; #elif QT_OSX_BLUETOOTH QBluetoothTransferReply *reply = new QBluetoothTransferReplyOSX(data, request, this); connect(reply, SIGNAL(finished(QBluetoothTransferReply*)), this, SIGNAL(finished(QBluetoothTransferReply*))); return reply; #else // Android, iOS, and WinRT have no implementation #if !defined(QT_ANDROID_BLUETOOTH) && !defined(QT_IOS_BLUETOOTH) && !defined(QT_WINRT_BLUETOOTH) printDummyWarning(); #endif Q_UNUSED(request); Q_UNUSED(data); return 0; #endif }So according to the documentation is is supported on Windows platform, but according to the source code itself, it is not supported...
Do you know where i can find a piece on code or a working example on bluetooth transfer message for windows ?
Any help would be highly appreciated,
Thx. -
Hi and welcome to devnet,
I think you have hit a documentation issue.
Bluetooth support is one thing, the various protocols that are available through the stack like obex here is a different one.
For example, Androïd does not support obex.
I would recommend check the bug report system to see if there's already something related to that.