Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.3.0 and simple bluetooth examples?
Qt 6.12 LTS is out! See what's new in the release blog

Qt 5.3.0 and simple bluetooth examples?

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.1k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    is there any simple bluetooth examples?
    i just need simple source how to connect android to spp bluetooth to send and receive terminal commands.

    i have tried every sources and none of them have worked, i just cant connect to HC-06 (or any else) device.

    i have been forking chat example for few days and latest problem is:
    @D/Qt (11199): ../bluetooth_kokeilu/chatclient.cpp:77 (void ChatClient::startClient(const QBluetoothServiceInfo&)): ConnectToService done
    W/Qt (11199): kernel/qobject.cpp:2247 (void err_method_notfound(const QObject*, const char*, const char*)): QObject::connect: No such signal QBluetoothSocket::unconnected() in ../bluetooth_kokeilu/chatclient.cpp:82
    W/Qt (11199): qbluetoothsocket_android.cpp:358 (qint64 QBluetoothSocketPrivate::readData(char*, qint64)): qt.bluetooth.android: Socket::readData: QBluetoothSocket::UnconnectedState QObject(0x0)
    W/Qt (11199): qbluetoothsocket_android.cpp:358 (qint64 QBluetoothSocketPrivate::readData(char*, qint64)): qt.bluetooth.android: Socket::readData: QBluetoothSocket::UnconnectedState QObject(0x0)
    @

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      Where did you get that example from? The "official version":http://qt-project.org/doc/qt-5/qtbluetooth-btchat-example.html does not have QBluetoothSocket::unconnected() (2nd line in your error message).

      When you install Qt 5.3.0, it should automatically install the source code for the examples in your computer at <Qt>/Examples/Qt-5.3/bluetooth/. You don't need to fork it yourself.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      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
      • Unsolved