Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Support of QBluetooth on Windows
Forum Updated to NodeBB v4.3 + New Features

Support of QBluetooth on Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 285 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bibi800
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved