Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QBluetoothServiceDiscoveryAgent usage in QThread .. signals and slots are not workign
Qt 6.11 is out! See what's new in the release blog

QBluetoothServiceDiscoveryAgent usage in QThread .. signals and slots are not workign

Scheduled Pinned Locked Moved General and Desktop
bluetoothqbluet
2 Posts 1 Posters 962 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Matthew
    wrote on last edited by
    #1

    hi,

    I am having a problem with Qt 5.5 Bluetooth on MacOsx ( Yosemite) ; I am calling to start service discovery with QBluetoothServiceDiscoveryAgent::start, in QThread which is executing it's own eventloop. ::run method calling ::exec()

    so in that case I do not get any signals to be emitted ( discovery finished, cancelled or servicediscovereded)

    This is somehow now eventloop related issue ,but so far I have not found a better way to do this. I would like to make service discovery command syncronous, so that when finished signal is emitted call would return .

    br. Matthew

    M 1 Reply Last reply
    0
    • M Matthew

      hi,

      I am having a problem with Qt 5.5 Bluetooth on MacOsx ( Yosemite) ; I am calling to start service discovery with QBluetoothServiceDiscoveryAgent::start, in QThread which is executing it's own eventloop. ::run method calling ::exec()

      so in that case I do not get any signals to be emitted ( discovery finished, cancelled or servicediscovereded)

      This is somehow now eventloop related issue ,but so far I have not found a better way to do this. I would like to make service discovery command syncronous, so that when finished signal is emitted call would return .

      br. Matthew

      M Offline
      M Offline
      Matthew
      wrote on last edited by
      #2

      @Matthew ,
      Not sure but the problem I am facing sounds similar as described in :

      http://forum.qt.io/topic/43046/bluetooth-discovering-devices-services-never-ends

      br . Matthew

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved