×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    6

    Unhappy .dll import, component based development etc.

    Hi there!

    I was wondering how can i have one project that is main (Qt Symbian) and
    other project that implements some functionality (e.g. sum(int a, int b) method) i a single .dll file?
    How do I use other project output in first (main) project?
    I am Visual Studio developer, in VS all you have to do is add reference in main project to second project, an this is it. How is this done in Qt Creator?

    I found this example that might solve my issue but there is nothing mentioned about how it is done in Qt creator. There are 2 zip files (2 project) that do not correlate with each other in any way. Even when i start them nothing works (i get blank screen)

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: .dll import, component based development etc.

    If you are developing new application then
    Easiest way to use qmlRegisterType as shown in the following example for QML
    qmlRegisterType<CLocationSource>("LocationSource", 1, 0, "CLocationSource");

    In QML you can use CLocationSource as element.
    In that example it is done in other way, but idea is same and this one is easier way.

  3. #3
    Registered User
    Join Date
    Sep 2010
    Posts
    6

    Re: .dll import, component based development etc.

    Hi,
    But what do i do with .dll file from second project? How do i include it in my project?
    Will intellisence then recognize objects in .dll file?

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: .dll import, component based development etc.

    Hi,
    2nd project is QML plug in project (dll). That shows how we can implement with Qt C++ in a plug in and that properties can be exported to QML.

    If you include import com.nokia.TimeExample 1.0 in your QML file then the element in dll project will recognize it. I just tried this example with QtSDK and it works fine.

    If you want to have a separate project then you can do like this but you can have a single project and register your C++ object with qmlRegisterType

    Hope this clarifies.

Similar Threads

  1. Development of PC application based on Nokia 5800
    By Maxime7 in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2010-08-30, 14:23
  2. Development of PC application based on Nokia 5800
    By Maxime7 in forum Open C/C++
    Replies: 1
    Last Post: 2010-08-30, 14:14
  3. SMS BASED APPLICATION DEVELOPMENT
    By mabilash in forum General Messaging
    Replies: 78
    Last Post: 2010-07-20, 16:07
  4. Need suggestions regarding SMS based Application development.
    By kpvrlakshmi in forum General Development Questions
    Replies: 2
    Last Post: 2010-05-25, 02:31
  5. Development of CIMD based Java Application
    By Nokia_Archive in forum Mobile Java General
    Replies: 1
    Last Post: 2002-05-20, 20:34

Posting Permissions

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