Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

    Unsolved how to clear QBluetoothDeviceDiscoveryAgent::discoveredDevices() ?

    General and Desktop
    1
    1
    286
    Loading More Posts
    • 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.
    • H
      Haponov last edited by

      In case of repeating scanning for bluetooth devices with the same QBluetoothDeviceDiscoveryAgent object, it stores found devices in discoveredDevices() list forever - how can it be cleared?

      http://code.qt.io/cgit/qt/qtconnectivity.git/commit/?id=5382ada3cb21cfa2721e4f50ced2d288c156018b
      states

       discoveredDevices.clear();
      

      in start() method but doing stop() and then start() for the same QBluetoothDeviceDiscoveryAgent object does not clear this list.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post