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

QBluetoothDeviceDiscoveryAgentPrivate missing parent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.14
    • Fix Version/s: None
    • Labels:
      None

      Description

      Creating an instance of QBluetoothDeviceDiscoveryAgent on a thread other than the main Qt thread causes this warning:

      QObject: Cannot create children for a parent that is in a different thread
      (Parent is QBluetoothDeviceDiscoveryAgentPrivate, parent's thread is QThread(0x...) ... )

      The QBluetoothDeviceDiscoveryAgentPrivate is an unparented QObject and isn't being moved with its parent to a new thread.

      Do you know if parenting QBluetoothDeviceDiscoveryAgentPrivate to QBluetoothDeviceDiscoveryAgent would fix this?

        Attachments

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

          Activity

            People

            • Assignee:
              ablasche Alex Blasche
              Reporter:
              adolby Andrew Dolby
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes