×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    4

    How can I call qt class in symbian project?

    I want to call qt class in symbian project. but dont success.
    for example:
    in the symbian project, I defined one qt class inherited QObject.

    class QMyclass : public QObject
    {
    Q_OBJECT
    ....
    };

    i want to call this QT class.

    class CCallclass : public CBase
    {
    static NewL();
    ....
    void ConstructL();

    QMyclass *iQtclass;
    }

    CCallclass::ConstructL()
    {
    iQtclass = new QMyclass();
    }

    now, I can complie successfully this project, but it dont run. ererytime, when i debug to "iQtclass = new QMyclass", it reported error(KERN-EXEC 3).
    I think it caused by "new" founction. in the symbian project, it only accepted class inherited from CBase. but QMyclass inherited from QObjec.
    please help me. many thanks!

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How can I call qt class in symbian project?

    i donot know if that is possible or not. usually we call Symbian C++ code from Qt code using wrapper classes

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    4

    Re: How can I call qt class in symbian project?

    Quote Originally Posted by skumar_rao View Post
    i donot know if that is possible or not. usually we call Symbian C++ code from Qt code using wrapper classes
    it should be feasible, if qt can call symbian class. i think symbian classes are complied by standard C++ library in the qt pioject. if we can complie qt class with std c++ library rather than symbian library. it is possible. but now, i dont know set macro in symbian project make us be able to use std c++ library.

  4. #4
    Regular Contributor
    Join Date
    Nov 2009
    Posts
    81

    Re: How can I call qt class in symbian project?


Similar Threads

  1. Replies: 4
    Last Post: 2009-04-26, 07:27
  2. Replies: 2
    Last Post: 2009-04-23, 08:25
  3. Need one HTTP client example
    By vinayakak in forum Symbian Networking & Messaging (Closed)
    Replies: 15
    Last Post: 2008-01-06, 06:44

Posting Permissions

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