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

Cannot exit app when trying to connect to offline BT device

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.0 RC2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      When running the following code on Windows (non-WinRT) version then the app stalls on exit when the Bluetooth device is turned off:

      void MyClass::connect()
      {
      	QBluetoothDeviceInfo info;
      	m_controller = new QLowEnergyController(info, nullptr);
      	m_controller->setRemoteAddressType(QLowEnergyController::PublicAddress);
      	m_controller->connectToDevice();
      }
      
      MyClass::~MyClass()
      {
      	m_controller->disconnectFromDevice();
      	delete m_controller;
      }
      

      The following message is printed repeatedly in the debug output:

      qt.bluetooth.winrt: Characteristic operation failed
      

        Attachments

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

          Activity

            People

            • Assignee:
              anrocha André De La Rocha
              Reporter:
              DanielSt Peter Staab
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes