QBluetoothLeUartDeviceModel class

The QBluetoothLeUartDeviceModel class can be used to display available devices in a QML ListView.

Example implementation:

import de.itsblue.bluetoothleuart 1.0

QBluetoothLeUartClient {
    id: ble
    Component.onCompleted: {
        ble.startScanningForDevices()
    }
}

ListView {
    model: ble.availableDevicesModel

    delegate: ItemDelegate {
        width: parent.width

        text: name

        onClicked: backend.bleController.connectToDevice(device)
    }
}