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. Bluetooth and Windows
Qt 6.11 is out! See what's new in the release blog

Bluetooth and Windows

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 3 Posters 1.6k Views 3 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    Hi all -

    I've begun experimenting with Bluetooth. I'm not sure how to interpret this paragraph:

    Despite there not being a Win32 port yet, the WinRT backend is automatically used if the win32 target platform supports the required WinRT APIs. Minimal requirement is Windows 10 version 1507 with slightly improved service discovery since Windows 10 version 1607. Therefore Windows 7 and 8.x targets are excluded.

    Later it says:

    Despite the fact that the module can be built for all Qt platforms, the module is not ported to all of them. Not supported platforms such as Windows desktop employ a fake or dummy backend which is automatically selected when the platform is not supported. The dummy backend reports appropriate error messages and values which allow the Qt Bluetooth developer to detect at runtime that the current platform is not supported. The dummy backend is also selected on Linux if BlueZ development headers are not found during build time or Qt was built without Qt D-Bus support.

    These quotes are from this page.

    So, does this mean that if I'm trying to use Qt Bluetooth on a Windows 10 system, I could expect it to operate correctly? Or is there additional effort on my part?

    Thanks...

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

      Hi
      Im not sure Bluetooth is ready for Desktop use.
      Only winRT seems supported. ( win 10 apps, not desktop programs)
      However, people seems to use
      https://forum.qt.io/topic/91117/bluetooth-low-energy-windows
      for desktop apps.

      1 Reply Last reply
      2
      • mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #3

        Interesting...looks like Microsoft is deliberately making it difficult. Guess I'll use something on an Android instead.

        mrjjM 1 Reply Last reply
        0
        • mzimmersM mzimmers

          Interesting...looks like Microsoft is deliberately making it difficult. Guess I'll use something on an Android instead.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @mzimmers
          well its more like they never did implement a cross device api to handle all
          bluetooth the same. Traditionally you would use the SDk for the device to access the features
          much like other device drivers.

          1 Reply Last reply
          1
          • ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by
            #5

            good news: starting with Qt 5.13 Alpha Qt supports BT LE Devices without Pairing, but ATM from binaries only for desktop builds - for UWP you must build Qt by yourself.
            I tested with MSVC2017-64 and devices are listed, can connect, read, write. On some devices Notify doesn't work, Disconnect never works.
            you can follow https://bugreports.qt.io/browse/QTBUG-74394

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps

            1 Reply Last reply
            4

            • Login

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