×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    87

    How to call a QT app within Symbian app?

    I have:
    Code:
        _LIT(KQTApp, "QT_App");
        
        RThread thread;
        User::LeaveIfError(thread.Create(KQTApp, NULL, KDefaultStackSize
                + 0x1000, KMinHeapSize, iMaxHeapSize,
                static_cast<TAny *>(this), EOwnerProcess));
        thread.Resume();
    It paniced with Kern-Exec 3.

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: How to call a QT app within Symbian app?

    Quote Originally Posted by useryy View Post
    I have:
    Code:
        _LIT(KQTApp, "QT_App");
        
        RThread thread;
        User::LeaveIfError(thread.Create(KQTApp, NULL, KDefaultStackSize
                + 0x1000, KMinHeapSize, iMaxHeapSize,
                static_cast<TAny *>(this), EOwnerProcess));
        thread.Resume();
    It paniced with Kern-Exec 3.
    I can't understand how can you combine both the codes.
    One is pure Symbian C++ and other is Qt for the S60 application....

    Although Kern-Exec 3 panic has many causes....
    Best regards,

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: How to call a QT app within Symbian app?

    its easy to understand both are c++ frameworks so can be used together obvioulsy.

    @useryy check this article have good expalanation of what you want http://developer.symbian.org/wiki/in...2B%2B_Together

  4. #4
    Registered User
    Join Date
    Jan 2007
    Posts
    282

    Re: How to call a QT app within Symbian app?

    Quote Originally Posted by useryy View Post
    I have:
    Code:
        _LIT(KQTApp, "QT_App");
        
        RThread thread;
        User::LeaveIfError(thread.Create(KQTApp, NULL, KDefaultStackSize
                + 0x1000, KMinHeapSize, iMaxHeapSize,
                static_cast<TAny *>(this), EOwnerProcess));
        thread.Resume();
    It paniced with Kern-Exec 3.
    Hi,

    I am not sure if you got your problem correctly but if the QT app is a different process altogether then how can you invoke it using RThread class. You must be using RProcess. The kern exec 3 issue is due to the NULL value entry function that you are passing to RThread::Create method.

    Intead use this code
    [/CODE]
    RProcess process;
    User::LeaveIfError(process.Create(KQTApp, KNullDesC);
    process.Resume();[/CODE]

    Hope that helps,
    VJ

  5. #5
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    87

    Re: How to call a QT app within Symbian app?

    Quote Originally Posted by vaibhavjain View Post
    Hi,

    I am not sure if you got your problem correctly but if the QT app is a different process altogether then how can you invoke it using RThread class. You must be using RProcess. The kern exec 3 issue is due to the NULL value entry function that you are passing to RThread::Create method.

    Intead use this code
    [/CODE]
    RProcess process;
    User::LeaveIfError(process.Create(KQTApp, KNullDesC);
    process.Resume();[/CODE]

    Hope that helps,
    VJ
    It does helps. Many thanks. A little more, how to transfer parameter. In RProcess::Create, it's a TDesC16, is that correspond to the argv of main() in QT?

  6. #6
    Registered User
    Join Date
    Jan 2007
    Posts
    282

    Re: How to call a QT app within Symbian app?

    The second parameter of RProcess::Create are the command line arguments to the invoked process that you will receive in your main as argv. So

    //parent process
    User::LeaveIfError(process.Create(KQTApp, _L("param1 param2 param3"));

    //child process
    int main(argc,argv)
    {
    ...
    QVERIFY(argc==4); //this will be true (note argv[0] child process name)
    ...
    }

    Hope that helps,
    VJ

Similar Threads

  1. Qt Creator code completion not working with Qt Mobility for Symbian
    By ceefour in forum [Archived] Qt Mobility Project
    Replies: 4
    Last Post: 2011-09-10, 05:02
  2. automatic rotate screen on meamo
    By fily_love in forum Nokia N9
    Replies: 27
    Last Post: 2010-04-06, 08:37

Posting Permissions

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