Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt Bluetooth on iOS
Forum Updated to NodeBB v4.3 + New Features

Qt Bluetooth on iOS

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
bluetoothios
1 Posts 1 Posters 995 Views
  • 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.
  • A Offline
    A Offline
    alok_pathak
    wrote on 26 Oct 2016, 09:03 last edited by
    #1

    Hi All

    I tried to search for an answer for my query. It seems trivial, but I cant find an answer yet.

    I am trying to run a program using Qt Bluetooth on iOS. I am able to use it successfully on MacOS.

    But even the most basic feature of code like :

    QBluetoothLocalDevice localDevice;
    QString localDeviceName;
    
    // Check if Bluetooth is available on this device
    if (localDevice.isValid()) {
    
        // Turn Bluetooth on
        localDevice.powerOn();
    
        // Read local device name
        localDeviceName = localDevice.name();
    
        // Make it visible to others
        localDevice.setHostMode(QBluetoothLocalDevice::HostDiscoverable);
    
        // Get connected devices
        QList<QBluetoothAddress> remotes;
        remotes = localDevice.connectedDevices();
        ui->textBrowser->setText(localDevice.name() + "\n" + localDevice.address().toString());
    
    }
    

    gives me a null vector as the address.

    Is there some specific settings needed to run it in iOS. Do I need to add certain flags on info.plist file? Kindly suggest.

    For information, I am using Qt 5.7 and xcode 8, programming on a macOS Sierra macbook and building it for iOS10.

    Many Thanks
    Alok

    1 Reply Last reply
    0

    1/1

    26 Oct 2016, 09:03

    • Login

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