Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How should I deploy an application that uses Qt.labs.particles?

How should I deploy an application that uses Qt.labs.particles?

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 4.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    elricbk
    wrote on 10 Nov 2010, 10:06 last edited by
    #1

    Hi,

    I'm trying to develop a simple game based on QML and I stumbled into a problem with application deployment. I managed to supply all necessary DLLs (QtCore, mingw, etc.) and imageformats plugins (qsvg4.dll) but I do not understand how to show my application qmlparticles.dll file which is responsible for QML Particles Element.

    At the moment I've tried:

    1. Placing it into executable directory with/without provided 'qmldir' file
    2. Placing it into executable directory under imports/Qt/labs/qmlparticles.dll
    3. Adding qmldir and qmlparticles plugin into game resources (because all qml files are in the resource system)
      ... and some other combinations too

    None of it worked. How should it be done correctly?

    Thanks for your replies in advance.

    1 Reply Last reply
    0
    • X Offline
      X Offline
      xizzhu
      wrote on 10 Nov 2010, 12:16 last edited by
      #2

      I think both the plugin and the qmldir file should be under the imports/Qt/labs/particles directory.

      This is how it works in Linux, and I guess it's the same for Windows.

      My Blog: http://xzis.me/

      1 Reply Last reply
      0
      • E Offline
        E Offline
        elricbk
        wrote on 10 Nov 2010, 12:37 last edited by
        #3

        Should this directory be in executable folder? Or in resources? I tried both variants -- neither worked, may be I miss something.

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xizzhu
          wrote on 10 Nov 2010, 12:52 last edited by
          #4

          The paths are specified by the QDeclarativeEngine. You can check the current path with QDeclarativeEngine::importPathList(), or add more with QDeclarativeEngine::addImportPath().

          In Linux, the default import paths are the current folder and "/usr/lib/qt4/imports". But the particles are registered as "Qt.labs.particles", so the system could find them at:
          ./Qt/labs/paticles
          or
          /usr/lib/qt4/imports/Qt/labs/paticles

          You can find more details by reading the doc for QDeclarativeExtensionPlugin.

          My Blog: http://xzis.me/

          1 Reply Last reply
          0
          • E Offline
            E Offline
            elricbk
            wrote on 10 Nov 2010, 13:07 last edited by
            #5

            Thanks a lot, it works. It was one of the variants of directory structure which I missed.

            1 Reply Last reply
            0

            1/5

            10 Nov 2010, 10:06

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved