Home > other >  QBluetoothDeviceInfo file not found
QBluetoothDeviceInfo file not found

Time:12-07

I found this: https://doc.qt.io/qt-5/qbluetoothdeviceinfo.html so, i trying to #include <QBluetoothDeviceInfo> but it says "file not found". I also tryed to add QT = bluetooth into project.pro file, but it says "unknown module(s)". What should i do to use it?

CodePudding user response:

Finally solwed the problem. Found solution here

needed steps:

sudo apt-get install qtconnectivity5-default
QT  = bluetooth
#include <QtBluetooth/BluetoothDeviceInfo>

also, there is, probably, no support for windows.

  •  Tags:  
  • qt
  • Related