Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT bluetooth not working on windows (mingw)
QtWS25 Last Chance

QT bluetooth not working on windows (mingw)

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 1.4k Views
  • 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.
  • K Offline
    K Offline
    karem34
    wrote on 8 May 2022, 17:15 last edited by karem34 5 Aug 2022, 17:21
    #1

    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 with windeployqt.

    i tried it on multiple computers and I'm getting the same error
    on Windows 10 Pro 20H2

    qt.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,

    1 Reply Last reply
    0
    • H Online
      H Online
      hskoglund
      wrote on 8 May 2022, 18:00 last edited by
      #2

      Don't know about bluetooth in Qt6 but in Qt5 using MinGW it didn't work, you had to use the MSVC compiler :-(

      1 Reply Last reply
      1
      • K Offline
        K Offline
        karem34
        wrote on 8 May 2022, 18:06 last edited by karem34 5 Aug 2022, 20:59
        #3

        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.
        
        1 Reply Last reply
        0
        • L Offline
          L Offline
          LubomirBogdanov
          wrote on 23 Sept 2022, 11:11 last edited by
          #4

          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.

          1 Reply Last reply
          0
          • J JonB referenced this topic on 19 Jun 2024, 18:47

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved