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

Qt Bluetooth api

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 2.0k 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.
  • H Offline
    H Offline
    herlarbee
    wrote on last edited by
    #1

    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

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

      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

      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
      • H Offline
        H Offline
        herlarbee
        wrote on last edited by
        #3

        yes I'm on windows.does that mean I can't write any desktop Bluetooth enabled app on windows.

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

          No, it means that you currently need to use Windows bluetooth api directly

          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
          • H Offline
            H Offline
            herlarbee
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • IamSumitI Offline
              IamSumitI Offline
              IamSumit
              wrote on last edited by
              #6

              Hii herlarbee

              Have a look on MSDN for bluetooth for WINDOWS.

              hope it helps.

              Be Cute

              1 Reply Last reply
              0
              • H Offline
                H Offline
                herlarbee
                wrote on last edited by
                #7

                thanks so much for your help i so much appreciate

                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