Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-54594

QBluetoothServer not working with QCoreApplication

    XMLWordPrintable

Details

    Description

      I'm trying to build a simple Qt based echo Bluetooth Server (rfcomm).
      I've noticed that when I'm using QCoreApplication(this is what I need because it will run on a board without display) instead of QGuiApplication or QApplication, I'm not able to receive any message and I'm not notified when a client is connected (SLOTS are not called).
      *The entire code can be found here: http://pastebin.com/aU13zgw0
      The server can be tested with Qt Bluetooth Chat example and the entire code of my server is extracted from the example.
      It could be something related to the event loop but I don't know what.
      I'm running the server on OS X El Capitan with Qt 5.6.1, Qt 5.6.0 and Qt 5.2.1.

      Attachments

        1. BTClient.tar.gz
          2 kB
          Timur Pocheptsov
        2. BTServer.tar.gz
          3 kB
          Timur Pocheptsov

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tpochep Timur Pocheptsov
              cosminmarc Cosmin Marc
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes