Talk:Discovering Bluetooth devices with the QBluetoothZero library
TunSym - Several Pb in compiling
Hi, I have several pb in compiling, I have some prerequistes with QT, i developp under QT 4.7.3 for my 5530/ S60 5th.
1st problem : how to name my files (even if it is done on *.pro, i still have trouble even with *.ui) my files are ( BL4.pro / Widget.h / main.cpp /Widget.cpp / Widget.ui) where widget with a capital "W".
I copied code lines (i dont know the exact order, where to put copied lines?? Not about *.pro or *.h, but about *.cpp, and how to name them, I also copied header files in project files due to linking errors (resolved).
2nd Problem: still got 3 Pbs for these lines :: 1-..\BL4\Widget.h:24: error: 'Ui' has not been declared
2-..\BL4-build-simulator\..\BL4\Widget.h:24: error: ISO C++ forbids declaration of 'Mainwindow' with no type
3-..\BL4-build-simulator\..\BL4\Widget.h:24: error: expected ';' before 'ui'
Ui::Mainwindow ui; //Dialog MainWindow Widget ??? what's my name space, i already checked in ui_widget.ui -> "MainWindow" name space // attention to the "* ui" in the example. QBtServiceDiscovererForAll discoverer;If any one could help??
17:22, 1 October 2012 (EEST)
Favoritas37 - Re: Several Pb in compiling
if you can be patient i will answer to your questions later today or early tomorrow.Regards.
17:41, 1 October 2012 (EEST)
TunSym -No Pb, i still working on it since 1 week, and though that is the time to ask for help ;))!
18:16, 1 October 2012 (EEST)
TunSym - News
I re-created a project named " widget" and these files (widget.pro / widget.h / main.cpp /widget.cpp / widget.ui)
I only get 1 error: ...\widget.h:25: error: 'Widget' in namespace 'Ui' does not name a type for this line, what should i do??Ui::Widget ui; //Dialog, MainWindow, Widget, Form??
18:33, 1 October 2012 (EEST)
I think that using codes from here will be better!
19:34, 1 October 2012 (EEST)
TunSym - Other solution
Ok, i think i going on the right direction, Here the "QuteMessenger - Bluetooth Chat" example works on my phone, so i'm going to look down in source file to undersand more that works.Info: XP sp3/ Nokia 5530 , S60 5th/ QT 4.7.3/
11:33, 8 October 2012 (EEST)
Favoritas37 - Discovery example
in the following link you will find the above code packed into a project: DiscoveryManager.zip
It has some corrections that were indeed needed. Also the idea of using QuteMessenger is pretty good.
PS. it thought i had already sent you the above link a week ago but it seems i was wrong, sorry...Good luck.
12:19, 8 October 2012 (EEST)