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

Enumerate QBluetoothDeviceDiscoveryAgent-s

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 1.3k 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.
  • M Offline
    M Offline
    martonmiklos
    wrote on last edited by
    #1

    Hello all,

    Is there any way to enumerate the local Bluetooth adapters?

    I am especially interested of doing this on Linux.

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

      Hi,

      Do you mean in case you have several bluetooth adapters on your computer ?

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

      M 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Do you mean in case you have several bluetooth adapters on your computer ?

        M Offline
        M Offline
        martonmiklos
        wrote on last edited by
        #3

        @SGaist
        Correct, I have multiple BT adapters in my machine.
        I can select them by passing the specific MAC address to the QBluetoothDeviceDiscoveryAgent's constructor, but I have not found any way to get the local device's MAC addresses.

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

          Isn't QBluetoothLocalDevice::allDevices what you are looking for ?

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

          M 1 Reply Last reply
          1
          • SGaistS SGaist

            Isn't QBluetoothLocalDevice::allDevices what you are looking for ?

            M Offline
            M Offline
            martonmiklos
            wrote on last edited by
            #5

            @SGaist
            Ah, this is what I was looking for thanks, somehow I missed it.

            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