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

QBluetoothDeviceDiscoveryAgentPrivate missing parent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.14
    • 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

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

        Activity

          People

            ablasche Alex Blasche
            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