×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,356

    Symbian C++ inside Qt

    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.

  2. #2
    Registered User
    Join Date
    Jan 2008
    Posts
    16

    Re: Symbian C++ inside Qt

    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"

  3. #3
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,356

    Re: Symbian C++ inside Qt

    i have done exactly the same way.
    I am using Carbide C++ with Qt 4.6.3 SDK.
    I .cpp file
    Code:
    #ifdef Q_OS_SYMBIAN
    #include <aknnotewrappers.h>
    #endif
    and in a function
    Code:
    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
    Now when I build the app, getting error
    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?

  4. #4
    Nokia Developer Champion
    Join Date
    Dec 2008
    Posts
    2,356

    Re: Symbian C++ inside Qt

    yes it was cause of missing lib.
    i opened the Qt Creator and then added this line of code in pro file
    Code:
    symbian: {
        TARGET.UID3 = 0xEA524E4F
        TARGET.CAPABILITY = ReadUSerData \
            WriteUserData \
            NetworkServices \
            LocalServices
     LIBS += -lcone -leikcore -lavkon -lhwrmvibraclient
    
    
    }
    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++

  5. #5
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Symbian C++ inside Qt

    There used to be a nice little writeup on using Symbian C++ from Qt, but, alas, the Symbian thugs have removed it.

  6. #6
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: Symbian C++ inside Qt

    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

  7. #7
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Symbian C++ inside Qt

    Well, then, the Nokia thugs.

  8. #8
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: Symbian C++ inside Qt

    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.

  9. #9
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Symbian C++ inside Qt

    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.

  10. #10
    Registered User
    Join Date
    Mar 2010
    Posts
    61

    Re: Symbian C++ inside Qt

    @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.

  11. #11
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: Symbian C++ inside Qt

    @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!

    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.

  12. #12
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: Symbian C++ inside Qt


Similar Threads

  1. QT Dev environment for QT + Symbian C++ hybrid code development
    By imrajhegde in forum [Archived] Qt SDKs and Tools
    Replies: 1
    Last Post: 2010-11-20, 01:38
  2. identify symbian inside ur mobile
    By lil_jil in forum General Development Questions
    Replies: 4
    Last Post: 2008-07-31, 10:40
  3. Is possible to insert Flash Lite content inside Symbian Container
    By fjorge_ht in forum [Archived] Flash Lite on Nokia Devices
    Replies: 5
    Last Post: 2007-12-01, 21:49
  4. Is possible to insert Flash Lite content inside Symbian Container
    By Hromada in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2007-11-27, 10:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×