找不到 QBluetoothDeviceInfo 文件
QBluetoothDeviceInfo file not found
我发现了这个:https://doc.qt.io/qt-5/qbluetoothdeviceinfo.html
所以,我试图 #include <QBluetoothDeviceInfo>
但它说“找不到文件”。
我还尝试将 QT += bluetooth
添加到 project.pro 文件中,但它显示“未知模块”。
我应该怎么做才能使用它?
终于解决了问题。找到解决方案 here
需要的步骤:
sudo apt-get install qtconnectivity5-default
QT += bluetooth
#include <QtBluetooth/BluetoothDeviceInfo>
此外,可能不支持 windows。
我发现了这个:https://doc.qt.io/qt-5/qbluetoothdeviceinfo.html
所以,我试图 #include <QBluetoothDeviceInfo>
但它说“找不到文件”。
我还尝试将 QT += bluetooth
添加到 project.pro 文件中,但它显示“未知模块”。
我应该怎么做才能使用它?
终于解决了问题。找到解决方案 here
需要的步骤:
sudo apt-get install qtconnectivity5-default
QT += bluetooth
#include <QtBluetooth/BluetoothDeviceInfo>
此外,可能不支持 windows。