×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    279

    Use QT in a symbian UI applicaton

    Hello,
    I have a Symbian GUI application and a symbian server. I would like to include a view that shows a map.
    For that purpose I will use QT.
    My question is -
    1. Do I have to rewrite the whole UI in QT or I can somehow create only the new view in QT and leave the old UI untouched?
    2. If I have to rewrite the UI I will also need to use the symbian server in the QT application, which qt class can replace RSessionBase::SendReceive ?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: Use QT in a symbian UI applicaton

    You could try making the Qt application hidden, and then run it embedded in your Symbian application. In theory should work just fine, though I have never tried it.

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    279

    Re: Use QT in a symbian UI applicaton

    Excellent idea, but I need some more help!

    From the symbian UI I tried to the start QT UI using the following code:
    Code:
    CApaDocument* CAppUi::StartEmbeddedL( TUid aAppUid )
    {
    	LOG_FUNCTION_F(_L("0x%08x"), aAppUid.iUid);
    	CApaDocument* newDoc = CEikonEnv::Static()->Process()->AddNewDocumentL(TApaApplicationFactory(aAppUid)); 
    	newDoc->EditL( this );
    	return newDoc;
    }
    In the QT UI .pro file I added only
    Code:
    RSS_RULES ="embeddability=KAppEmbeddable;"
    This solution does not work - the QT ui is not started

    I took a look at one SDK example and it seems that I need to create a dll that exports
    Code:
    // Map the interface UIDs
    static const TImplementationProxy ImplementationTable[]=
    	{
    	IMPLEMENTATION_PROXY_ENTRY(0xE800008F, NewApplication)
    	};
    
    // Exported proxy for instantiation method resolution
    EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
    	{
    	LOG_FUNCTION;
    	aTableCount=sizeof(ImplementationTable)/sizeof(ImplementationTable[0]);
    	return ImplementationTable;
    	}
    Is this the way that I should create a embeddable application? How can I achieve this using QT?
    Last edited by microsoft2; 2012-10-01 at 12:46.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: Use QT in a symbian UI applicaton

    its been awhile since I made embeddable apps, anyway, I did not notice any requirements on building additional dlls for the embeddable apps, so have you tried what happens when you try embedding your Qt app with Symbian App ?

  5. #5
    Registered User
    Join Date
    Jan 2006
    Posts
    279

    Re: Use QT in a symbian UI applicaton

    Yes I did - the QT application is not started, actually nothing happens.
    I have never created/used any embeddable applications - here is what I found from the SDK

    Porting from 2nd edition to 3rd edition:
    http://library.developer.nokia.com/i...ppsToExes.html

    Embeddable applications are implemented as ECom plug-ins. The CApaApplication class defines the interface, and the majority of an application's code will be in the ECom plug-in. To allow an embeddable application to run as a standalone application a small EXE also needs to be created which calls the EikStart::RunApplication() function, but this time specifying the UID of the ECom plug-in rather than a pointer to the factory function.

    This section describes the steps for converting an existing embeddable application to an ECom plug-in and executable.
    Here is the 'embeddable' example that I am looking at - using the Ecom plugin - using this example the embedded application is shown correctly
    http://library.developer.nokia.com/i...verviewex.html

Similar Threads

  1. How to auto launch applicaton after power on?
    By kayswing in forum Symbian
    Replies: 3
    Last Post: 2007-11-23, 06:26
  2. Is that possible that pop up a Note in a .exe applicaton
    By beta55 in forum Symbian User Interface
    Replies: 5
    Last Post: 2007-05-31, 15:24
  3. Replies: 0
    Last Post: 2006-10-21, 16:12
  4. how to build my applicaton on nokia7650
    By chinazou305 in forum Symbian
    Replies: 1
    Last Post: 2002-09-17, 11:09

Posting Permissions

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