qt.bluetooth: Dummy backend running. Qt Bluetooth module is non-functional
-
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.4Window {
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 }}
-
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.4Window {
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 }}
-
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.4Window {
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 }}
-
@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.
-
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 )