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

QBluetoothDeviceDiscoveryAgentPrivate missing parent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 5.14
    • None

      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?

        1. bluetooththread.zip
          60 kB
          Andrew Dolby
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes