Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2010

    Creating a QML installed module

    I want to create a QML module (e.g. Foo 1.0) that I can install and then use in an application by importing it:

    import Foo 1.0
    Stipulating that I can trick Qt Creator into packaging my code correctly for both Symbian^3 and Maemo, where do I install my module? Alternatively, how do I update QML_IMPORT_PATH to include my module?

    On Maemo, I'm inclined to install to /opt/foo/{imports, lib, plugins}.

    I am without a clue about where to put it on Symbian^3.

  2. #2
    Super Contributor
    Join Date
    Mar 2009

    Re: Creating a QML installed module

    QML import paths makes me crazy too. What about embedding your QML files inside a Qt resource file?
    You can create in your resource file a structure like this:

    BTW in general you should put your Foo directory is in the same main.qml dir. (Valid if you are not going to share the Foo component with other QML apps!)

  3. #3
    Registered User
    Join Date
    Sep 2010

    Re: Creating a QML installed module

    Putting QML files in a Qt resource file is an interesting idea, gnuton. If I do that, can I install it just once and expect other applications to find it?

    What I'm trying to do is to build applications that use Colibri. I don't want to deliver a complete copy of Colibri with each application. That would be wasteful.

Similar Threads

  1. How to call/load another QML file from QML ?
    By cadlg in forum [Archived] Qt Quick
    Replies: 5
    Last Post: 2011-07-28, 09:15
  2. Can’t run QML app when installed to Mass Storage
    By QtQueries in forum [Archived] Qt Quick
    Replies: 3
    Last Post: 2011-03-10, 12:26
  3. Qt/3D with QML bindings - "module "Qt3D" is not installed"
    By John de Witt in forum [Archived] Qt SDKs and Tools
    Replies: 0
    Last Post: 2010-10-20, 04:53
  4. Replies: 4
    Last Post: 2008-10-10, 22:56
  5. Creating new Nokia PC Sync module?
    By hhppp in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2008-02-08, 14:00

Posting Permissions

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