Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Unknown module(s) in QT: bluetooth
Frysk99 last edited by
Just started with Qt creator, trying to develop an app on my phone to communicate over bluetooth.
Anyway, tried some general examples and that goes well also deploying. Tried a bluetooth low energy example from here:
And from here:
But both gave the error:
:-1: error: Project ERROR: Unknown module(s) in QT: bluetooth positioning androidextras
When I search on it, almost all the answers are targeting Linux, but I'm using windows:
Qt Creator 5.0.1
Based on Qt 5.15.2 (MSVC 2019, 64 bit)
Built on Sep 14 2021 01:17:14
From revision 7e965629b0
Anyone knows how to solve it, it must not be hard, but cannot find directly the answer on google or this forum. Some suggest to install qtconnectivity5-dev, but that is for Linux as for as I know.
Hi and welcome
Any chance that you are using in fact Qt 6.0 or 6.1 ?
If so, you should either use Qt 5.15 or 6.2.
Frysk99 last edited by
I thought first this isn't possible because the help->about states Qt version 5.15.2, but when I look at the kits used for compiling for Android it states:
So that would be a possible cause than, I will try to upgrade or downgrade than.
And thank you for the answer...
The about dialog of Qt Creator gives information about Qt Creator itself, not what you are using to build your application.
eyllanesc last edited by
@Frysk99 Recently Qt 6.2 should be introduced QtBluetooth in Qt6 so you could wait (although I do not recommend it since there are probably bugs), see https://www.qt.io/blog/add-on-support-in-qt-6.0-and-beyond. Another option is to use Qt 5(IMO the best option in your case)
@SGaist I really think QtCreator devs should add a note to the about dialog that the Qt version shown there is not necesserily the one users use for their projects! So many people think the Qt version shown in about dialog in QtCreator is the one they're using...
Frysk99 last edited by Frysk99
I went back to an older version, 5.15.2 was in a doubt what to do, found older source code (https://www.qt.io/offline-installers), but I assume you have to build it your self and also configurate. I found an older online installer in which I could select older versions (which was not possible with the newest installer) at:
In this way I thought I don't have the hassle to configurate everything manually. So I uninstalled the current Qt installation and installed 5.15.2, did take a very long time, probably installed more than what was needed, but anyway.
Noticed that in the examples the bluetooth example was already there and everything worked out of the box!!
I could connect to my NRF chip. I will try to use BLE Uart to communicate, first find out how to connect button presses to piece's of code and text with received data.
The emulator I also got working, in project tab I had to select x86 ABI to get the x86 emulator working, the arm version was to slow.
It goes better than expected, tried Android studio first but that was so overwhelming and I have a little exprerience with Qt. Thanks for the help.
(I don't know how to get smaller picture's sorry for that ;) )
probably installed more than what was needed
You probably selected all flavors of Qt under 5.15.2, only select what you really need.