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

Bluetooth on OSX doesn't work on threads other than the main GUI thread

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0 RC
    • 5.5.0 Beta, 5.5.0 RC, 5.5.0
    • None
    • OS X
    • macOS
    • 97c8f6aa9c774aa0aac8948dd619e93944ec104a, e117459e0d3d0670aa2cc60dfa3eafe81bbf11a9

    Description

      Under OSX, creating a bluetooth discovery agent and/or socket in anything other than the main GUI thread does not work.
      All the serviceDiscovered/finished/canceled/error and readyRead/connected/disconnected signals never reach the slots they're connected to.
      I've been trying to move the IO to a separate thread to decouple from the GUI, but both creating the objects in the new thread and creating them in the main thread and then using moveToThread result in the same problem, the signals never get emitted or reach their intended slot.
      I've experienced this trying to connect to a simple SPP serial device.
      It probably has to do with the underlying objective-C component not inheriting from qObject.

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            atemil Alessandro Temil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes