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. QBluetoothLocalDevice cannot find Bluetooth local device

QBluetoothLocalDevice cannot find Bluetooth local device

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.7k Views
  • 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.
  • E Offline
    E Offline
    ExorcistInc
    wrote on last edited by
    #1

    Hi!
    QBluetoothLocalDevice::isValid() always returns false on computer with Windows 7 x64 and Broadcom BCM2070 Bluetooth 2.1+EDR USB Device. But Windows finds Bluetooth devices and can communicate with them.

    Qt Bluetooth examples also don`t work. I am using Qt 5.2 with MSVC 2010 x86.

    Code:
    @ QBluetoothLocalDevice localDevice;
    QString localDeviceName;

    // Check if Bluetooth is available on this device
    if (localDevice.isValid()) {
        // Turn Bluetooth on
        localDevice.powerOn();
    
        // Read local device name
        localDeviceName = localDevice.name();
    
        qDebug()  << localDeviceName;
    
        // Make it visible to others
        localDevice.setHostMode(QBluetoothLocalDevice::HostDiscoverable);
    }
    else {
        qDebug()  << "Bluetooth is not available on this device";
    }@
    
    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      As per "this":http://qt-project.org/wiki/New-Features-in-Qt-5.2#a12a092a739cea3499350adb459d86b0 bluetooth is supported only for Linux/Bluez 4.x and BlackBerry.

      157

      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