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. QtBluetooth on Windows not working
Forum Updated to NodeBB v4.3 + New Features

QtBluetooth on Windows not working

Scheduled Pinned Locked Moved Solved General and Desktop
bluetoothwindows 10
15 Posts 6 Posters 6.1k 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.
  • aha_1980A Offline
    aha_1980A Offline
    aha_1980
    Lifetime Qt Champion
    wrote on last edited by
    #5

    To be fair, there is a lot of work ongoing to improve the Windows/Bluetooth experience.

    See https://codereview.qt-project.org/#/q/status:merged+branch:wip/win,n,z for reference. However, this branch is not ready for production yet, but can already be compiled from end-users for testing purpose.

    Regards

    Qt has to stay free or it will die.

    1 Reply Last reply
    4
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #6

      That's great! Thanks for the info, @aha_1980 !

      (Z(:^

      1 Reply Last reply
      1
      • sierdzioS sierdzio

        I've had the same issue just a few days ago. You need to use MSVC compiler instead of MinGW, then it works.

        Well, kind of works because BT support on Windows is very weak.

        E Offline
        E Offline
        elsa
        wrote on last edited by
        #7

        @sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?

        jsulmJ sierdzioS 2 Replies Last reply
        0
        • E elsa

          @sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #8

          @elsa said in QtBluetooth on Windows not working:

          tell me how to set up the MSVC compiler?

          Did you already install Visual Studio or Microsoft Build Tools and Qt for Visual Studio?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • E elsa

            @sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?

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

            @elsa said in QtBluetooth on Windows not working:

            @sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?

            In short, it's simple:

            • download and install Microsof Visual Studio (it's free nowadays), make sure to check C++ download option (you don't need any of the rest: .Net, embedded, other platforms, Python and whatnot)
            • open Qt Maintenance Tool and add MSVC 2017 package for your Qt version
            • that's it, Qt Creator should now recognize that version, you just need to select it for your project in project settings

            (Z(:^

            E 1 Reply Last reply
            5
            • sierdzioS sierdzio

              @elsa said in QtBluetooth on Windows not working:

              @sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?

              In short, it's simple:

              • download and install Microsof Visual Studio (it's free nowadays), make sure to check C++ download option (you don't need any of the rest: .Net, embedded, other platforms, Python and whatnot)
              • open Qt Maintenance Tool and add MSVC 2017 package for your Qt version
              • that's it, Qt Creator should now recognize that version, you just need to select it for your project in project settings
              E Offline
              E Offline
              elsa
              wrote on last edited by
              #10

              @sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.

              sierdzioS mrjjM 2 Replies Last reply
              0
              • E elsa

                @sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.

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

                @elsa said in QtBluetooth on Windows not working:

                @sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.

                Apart from knowing that CDB is the MSVC debugger I know nothing about it, sorry ;-)

                (Z(:^

                J.HilkJ 1 Reply Last reply
                2
                • sierdzioS sierdzio

                  @elsa said in QtBluetooth on Windows not working:

                  @sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.

                  Apart from knowing that CDB is the MSVC debugger I know nothing about it, sorry ;-)

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

                  @sierdzio said in QtBluetooth on Windows not working:

                  Apart from knowing that CDB is the MSVC debugger I know nothing about it, sorry ;-)

                  I may be of help here :)

                  @elsa
                  IIRC MSVC installation does not come automatically with the c++ debuger.
                  You'll need to download and install the Windows Software Developer Kit

                  to be found here, I think. It's been a while when I installed it.
                  https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk


                  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.

                  E 1 Reply Last reply
                  4
                  • E elsa

                    @sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by mrjj
                    #13

                    @elsa
                    Hi
                    Can be many reasons
                    https://forum.qt.io/topic/69130/unexpected-cdb-exit

                    Also, are you using Creator Or Visual Studio to run it?

                    Ahh, @J-Hilk beat me to it :)
                    You might need the standalone debugger if running from Creator.

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

                      @sierdzio said in QtBluetooth on Windows not working:

                      Apart from knowing that CDB is the MSVC debugger I know nothing about it, sorry ;-)

                      I may be of help here :)

                      @elsa
                      IIRC MSVC installation does not come automatically with the c++ debuger.
                      You'll need to download and install the Windows Software Developer Kit

                      to be found here, I think. It's been a while when I installed it.
                      https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk

                      E Offline
                      E Offline
                      elsa
                      wrote on last edited by
                      #14

                      @J.Hilk @mrjj thank you for your answers. I already had an SDK installed. I reinstalled it, but the error remains :/ could it be some version mismatch? How can I check this?

                      mrjjM 1 Reply Last reply
                      0
                      • E elsa

                        @J.Hilk @mrjj thank you for your answers. I already had an SDK installed. I reinstalled it, but the error remains :/ could it be some version mismatch? How can I check this?

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by
                        #15

                        @elsa
                        Check the kits and see if any red marks.

                        1 Reply Last reply
                        1

                        • Login

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