Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77742

QBluetoothLocalDevice's name() function returns empty string

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Invalid
    • Affects Version/s: 5.12.4, 5.13.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 10 Version 1809 (build 17763.678)
      Avantree DG40S USB Bluetooth 4.0 Adapter Dongle
      Qt 5.13.0 MSVC 2017 64 bit
    • Platform/s:
      Windows

      Description

      Tested with a slightly modified version of the code demonstrated here:

      https://doc.qt.io/qt-5/qtbluetooth-overview.html#retrieving-local-device-information 

       

      QBluetoothLocalDevice localDevice;
      QString localDeviceName;
      
      if (localDevice.isValid()) {
      
          localDevice.powerOn();
      
          localDeviceName = localDevice.name();
          qDebug() << "Local device name: " << localDeviceName;
      }
      

      Result as per subject.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              owolff Oliver Wolff
              Reporter:
              vicious Nicolae Cosmin Goea
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes