QT bluetooth not working on windows (mingw)
-
I couldn't find this solved anywhere else,
I'm running the
btscanner
example from QT Connectivity (QT Version 6.3.0)
it is compiled with Mingw64 on MSYS2, and deployed withwindeployqt
.i tried it on multiple computers and I'm getting the same error
on Windows 10 Pro 20H2qt.bluetooth: Dummy backend running. Qt Bluetooth module is non-functional.
i made sure Bluetooth was powered on and i manually paired the device,
as to my understanding, QT bluetooth supports windows 10 since QT 5.15.thanks in advance,
-
Don't know about bluetooth in Qt6 but in Qt5 using MinGW it didn't work, you had to use the MSVC compiler :-(
-
it looks like there's an implementation using the win32 API (which doesn't require MSVC), but i don't know enough about this,
i'll try MSVC,thanks for answering.
EDIT: the Win32 backend has been removed
from docs:Win32 backend has been removed. There will not be a working Bluetooth backend when Qt is built with mingw.
-
Hi, you need to install Visual Studio Community edition. Download the installer (I tried with 2017 and 2019 and it works on Windows 10 and 11) and make sure that you select C++ compiler and build tools in the installation menu.
Restart the PC, open Qt Creator and in the project Kits change from MinGW to MSVC, then press Configure. If the checkbox is not active, you have not installed the compiler. Qt will detect the MSVC compiler automatically.
Hope this helps,
L. B. -