#include #include #include #include int main() { auto btDevice = new QBluetoothLocalDevice(QBluetoothAddress()); qDebug() << btDevice->address(); auto deviceList = QBluetoothLocalDevice::allDevices(); if (deviceList.size() > 0) { for (auto devIt = deviceList.begin(); devIt != deviceList.end(); devIt++) { qDebug() << devIt->address(); } } else { qWarning() << "No local Bluetooth adaptors found."; } }