PDA

View Full Version : problem with Qbluetooth :(



ahmed ali
20th March 2012, 19:54
Hello Everybody :)
i am using Qt to make a project that connects to another device using bluetooth to exchange data between, but when i use

#include<Qbluetooth>
there is an error:
error: C1083: Cannot open include file: 'Qbluetooth': No such file or directory

can anybody help me ?
thanks in advance

prophet0
20th March 2012, 21:48
Here is a link that may solve your solution
http://qt-project.org/forums/viewthread/12385

make sure your adding the right information to your .pro file

ChrisW67
20th March 2012, 22:04
#include<Qbluetooth>
there is an error:
error: C1083: Cannot open include file: 'Qbluetooth': No such file or directory


My guess is that the file is called QBluetooth not Qbluetooth.

You may also need to do something with the macros:

QTM_BEGIN_NAMESPACE
QTM_END_NAMESPACE
QTM_USE_NAMESPACE

if the examples are anything to go by.

ahmed ali
21st March 2012, 01:02
thanks, but,
I have tried all guesses but the same error

ChrisW67
21st March 2012, 01:51
You do have Qt Mobility installed, don't you?
Have you added the necessary references to Qt Mobility into your pro file?
Can you build the examples that come with Qt Mobility?
Do the headers in you source look like those in the examples? There is no "QBluetooth" or "Qbluetooth" in my copy of the source or examples.