Hi,
I am trying to use the Symbian C++ API in Qt apps. I mean is there any way I could make a Qt project and inside that I use my Symbian C++ API?
Please suggest me.
Hi,
I am trying to use the Symbian C++ API in Qt apps. I mean is there any way I could make a Qt project and inside that I use my Symbian C++ API?
Please suggest me.
simply add your symbian code with the preprocessor:
#ifdef Q_OS_SYMBIAN
And add the required library in the .pro file:
e.g to add cone.lib :
symbian:LIBS += -lcone
and compile with Symbian Devices in "Project " --> "target"
i have done exactly the same way.
I am using Carbide C++ with Qt 4.6.3 SDK.
I .cpp file
and in a functionCode:#ifdef Q_OS_SYMBIAN #include <aknnotewrappers.h> #endif
Now when I build the app, getting errorCode:void QtUIApp::showHttpView() { // QMessageBox::information(this, tr("About stream example"), // tr("second Window")); #ifdef Q_OS_SYMBIAN CAknInformationNote *info = new(ELeave)CAknInformationNote(); info->ExecuteLD(_L("second")); #endif
undefined reference to `CAknInformationNote::CAknInformationNote()'
Is it ccause of missing lib?
when I try to open the .pro file in Carbide C++, its not opening , rather its opening in the Qt Creator.
How can i edit the .pro file in Carbide C++ IDE?
yes it was cause of missing lib.
i opened the Qt Creator and then added this line of code in pro file
I would like to know, if I use this way can I access all the API of Symbian S60 from Qt project, that I can access while using Symbian C++Code:symbian: { TARGET.UID3 = 0xEA524E4F TARGET.CAPABILITY = ReadUSerData \ WriteUserData \ NetworkServices \ LocalServices LIBS += -lcone -leikcore -lavkon -lhwrmvibraclient }
There used to be a nice little writeup on using Symbian C++ from Qt, but, alas, the Symbian thugs have removed it.
If you're talking about the article on the developer.symbian.org wiki, it was written by Hamish Willee (who's clearly not a thug) and I did a lot of the technical review for it. I believe Hamish is, or will soon be contracted to Forum Nokia and you should see most of the best articles re-instated over here.
There's also a move to get the whole symbian.org wiki back up and running on the symbiandevco site (it's not there yet as I write this).
http://www.symbiandevco.org/
I think it's a little unfair to call the remnants of Symbian thugs (but they're my ex-colleagues, so perhaps I'm biased) - the staff that are left until March are insufficient in both number and skills to keep the website running and close down the rest of the operations, so they had little choice but to take it down. Nokia had more than enough notice to come up with a temporary hosting solution (had it been a priority to do so - the whole thing was on Amazon's cloud anyway, no need to set up servers even) but elected not to. As such we just have to wait for the valuable content to re-surface - nothing has been lost forever.
Last edited by Sorcery-ltd; 2011-01-05 at 17:51. Reason: fix typo
Well, then, the Nokia thugs.
I'd prefer to attribute it to lack of understanding and urgency on the part of the people in charge of those decisions - organisational incompetence rather than individual incompetence you might say - rather than thuggery, but you can make up your own mind.![]()
Well, I think organizations are very often bigger thugs than individuals. In this case I suspect there's a bit of resentment going on between the Symbian and Qt camps, and when coupled with Nokia's clueness you get the sort of unmanageable mess we're seeing.
@Sorcery-ltd: I'd love it if you Symbian and/or Qt guys would post here more often. We need inside info especially when it comes to strange bugs and their workarounds.
I'm an ex-Symbian guy now. I'm also ex-Nokia from before that!@Sorcery-ltd: I'd love it if you Symbian and/or Qt guys would post here more often. We need inside info especially when it comes to strange bugs and their workarounds.
Strangely enough, most of the Symbian staff were posting on developer.symbian.org forums and you'll find far more of the Qt developers or "Trolls" as they like to call themselves posting on the Qt developer network forums.
Now there is no developer.symbian.org you'll probably find me around here a lot more again.
When it comes to strange bugs and their workarounds, all the source is now open (very nearly all of it anyway) so there are no secrets. The lack of OpenGrok now the Symbian Foundation site is closed does make it much harder to find the problem bits of platform code quickly though.
I saw these are on the Forum Nokia Wiki now:
http://wiki.forum.nokia.com/index.ph...ration_Project
http://wiki.forum.nokia.com/index.ph...2B%2B_Together