Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. qt.bluetooth: Dummy backend running. Qt Bluetooth module is non-functional
Forum Updated to NodeBB v4.3 + New Features

qt.bluetooth: Dummy backend running. Qt Bluetooth module is non-functional

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 5 Posters 1.7k Views 2 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.
  • M Offline
    M Offline
    manga
    wrote on last edited by manga
    #1

    Hello everyone, I am trying to make qt quick application to scan for devices and connect to a selected one i tried this code but it gave me this error in application output "qt.Bluetooth: Dummy backend running. Qt Bluetooth module is non-functional"
    can anyone help me?

    import QtQuick 2.12
    import QtQuick.Window 2.12
    import QtBluetooth 5.12
    import QtQuick.Controls 2.4

    Window {
    id: mainWindow
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello Bluetooth LE")

    BluetoothDiscoveryModel {
        id: discoveryModel
        discoveryMode: BluetoothDiscoveryModel.DeviceDiscovery
        onDeviceDiscovered: {
            if (/*device == "01:01:01:01:01:01" && */discoveryMode == BluetoothDiscoveryModel.DeviceDiscovery) {
                discoveryModel.running = false
                discoveryModel.discoveryMode = BluetoothDiscoveryModel.FullServiceDiscovery
                discoveryModel.remoteAddress = device
                discoveryModel.running = true
            }
        }
        onErrorChanged: {
            textArea.text = discoveryModel.error
        }
    }
    
    ListView {
        id: mainList
        anchors.top: busy.bottom
        anchors.fill: parent
        model: discoveryModel
    
        delegate: Rectangle {
            id: btDelegate
            width: parent.width
            height: column.height + 10
            focus: true
            Column {
                id: column
                anchors.horizontalCenter: parent.horizontalCenter
                Text {
                    id: btText
                    text: deviceName ? deviceName : name
                    font.pointSize: 14
                }
            }
        }
    }
    TextArea {
        id: textArea
        anchors.bottom: mainList.bottom
        text: discoveryModel.error == BluetoothDiscoveryModel.NoError ? "" : "No bluetooth found"
    }
    
    BusyIndicator {
        id: busy
        width: mainWindow.width *.6
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: mainWindow.top
        height: mainWindow.height / 8
        running: discoveryModel.running
    }
    

    }

    sierdzioS J.HilkJ 2 Replies Last reply
    0
    • M manga

      Hello everyone, I am trying to make qt quick application to scan for devices and connect to a selected one i tried this code but it gave me this error in application output "qt.Bluetooth: Dummy backend running. Qt Bluetooth module is non-functional"
      can anyone help me?

      import QtQuick 2.12
      import QtQuick.Window 2.12
      import QtBluetooth 5.12
      import QtQuick.Controls 2.4

      Window {
      id: mainWindow
      visible: true
      width: 640
      height: 480
      title: qsTr("Hello Bluetooth LE")

      BluetoothDiscoveryModel {
          id: discoveryModel
          discoveryMode: BluetoothDiscoveryModel.DeviceDiscovery
          onDeviceDiscovered: {
              if (/*device == "01:01:01:01:01:01" && */discoveryMode == BluetoothDiscoveryModel.DeviceDiscovery) {
                  discoveryModel.running = false
                  discoveryModel.discoveryMode = BluetoothDiscoveryModel.FullServiceDiscovery
                  discoveryModel.remoteAddress = device
                  discoveryModel.running = true
              }
          }
          onErrorChanged: {
              textArea.text = discoveryModel.error
          }
      }
      
      ListView {
          id: mainList
          anchors.top: busy.bottom
          anchors.fill: parent
          model: discoveryModel
      
          delegate: Rectangle {
              id: btDelegate
              width: parent.width
              height: column.height + 10
              focus: true
              Column {
                  id: column
                  anchors.horizontalCenter: parent.horizontalCenter
                  Text {
                      id: btText
                      text: deviceName ? deviceName : name
                      font.pointSize: 14
                  }
              }
          }
      }
      TextArea {
          id: textArea
          anchors.bottom: mainList.bottom
          text: discoveryModel.error == BluetoothDiscoveryModel.NoError ? "" : "No bluetooth found"
      }
      
      BusyIndicator {
          id: busy
          width: mainWindow.width *.6
          anchors.horizontalCenter: parent.horizontalCenter
          anchors.top: mainWindow.top
          height: mainWindow.height / 8
          running: discoveryModel.running
      }
      

      }

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @manga which operating system are you using?

      (Z(:^

      M 1 Reply Last reply
      0
      • M manga

        Hello everyone, I am trying to make qt quick application to scan for devices and connect to a selected one i tried this code but it gave me this error in application output "qt.Bluetooth: Dummy backend running. Qt Bluetooth module is non-functional"
        can anyone help me?

        import QtQuick 2.12
        import QtQuick.Window 2.12
        import QtBluetooth 5.12
        import QtQuick.Controls 2.4

        Window {
        id: mainWindow
        visible: true
        width: 640
        height: 480
        title: qsTr("Hello Bluetooth LE")

        BluetoothDiscoveryModel {
            id: discoveryModel
            discoveryMode: BluetoothDiscoveryModel.DeviceDiscovery
            onDeviceDiscovered: {
                if (/*device == "01:01:01:01:01:01" && */discoveryMode == BluetoothDiscoveryModel.DeviceDiscovery) {
                    discoveryModel.running = false
                    discoveryModel.discoveryMode = BluetoothDiscoveryModel.FullServiceDiscovery
                    discoveryModel.remoteAddress = device
                    discoveryModel.running = true
                }
            }
            onErrorChanged: {
                textArea.text = discoveryModel.error
            }
        }
        
        ListView {
            id: mainList
            anchors.top: busy.bottom
            anchors.fill: parent
            model: discoveryModel
        
            delegate: Rectangle {
                id: btDelegate
                width: parent.width
                height: column.height + 10
                focus: true
                Column {
                    id: column
                    anchors.horizontalCenter: parent.horizontalCenter
                    Text {
                        id: btText
                        text: deviceName ? deviceName : name
                        font.pointSize: 14
                    }
                }
            }
        }
        TextArea {
            id: textArea
            anchors.bottom: mainList.bottom
            text: discoveryModel.error == BluetoothDiscoveryModel.NoError ? "" : "No bluetooth found"
        }
        
        BusyIndicator {
            id: busy
            width: mainWindow.width *.6
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.top: mainWindow.top
            height: mainWindow.height / 8
            running: discoveryModel.running
        }
        

        }

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @manga and which compiler ?


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        M 1 Reply Last reply
        0
        • sierdzioS sierdzio

          @manga which operating system are you using?

          M Offline
          M Offline
          manga
          wrote on last edited by
          #4

          @sierdzio windows 11
          qt creator 5.0.2 IDE

          1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            @manga and which compiler ?

            M Offline
            M Offline
            manga
            wrote on last edited by
            #5

            @J-Hilk minGW 64-bit

            B J.HilkJ 2 Replies Last reply
            0
            • M manga

              @J-Hilk minGW 64-bit

              B Offline
              B Offline
              Bob64
              wrote on last edited by
              #6

              @manga I had a quick Google and it looks like there a number of people saying that it does not work with mingw and that you need to use msvc. There might also be some dependency on the Qt version you are using. It's probably worth you doing some research into the support for your configuration. You might need to switch compiler.

              1 Reply Last reply
              3
              • O Offline
                O Offline
                oniongarlic
                wrote on last edited by
                #7

                Windows Bluetooth is not supported when using mingw, see https://doc.qt.io/qt-6/qtbluetooth-changes-qt6.html

                • Win32 backend has been removed. There will not be a working Bluetooth backend when Qt is built with mingw

                (Then again, seems there might be work to get that back, https://bugreports.qt.io/browse/QTBUG-107516 )

                1 Reply Last reply
                1
                • M manga

                  @J-Hilk minGW 64-bit

                  J.HilkJ Offline
                  J.HilkJ Offline
                  J.Hilk
                  Moderators
                  wrote on last edited by
                  #8

                  @manga there you have it, ming only has a "Dummy" bluetooth backend on Windows. You can compile it and it will run, but with no actual BT functionality.

                  You will have to use MSVC or use external c++ BT libraries


                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  1 Reply Last reply
                  1
                  • M Offline
                    M Offline
                    manga
                    wrote on last edited by
                    #9

                    how can i connect my phone to QT Quick app via bluetooth to play audio and make dial ?

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