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 to deploy a qml application? What do I do with the modules?
Forum Updated to NodeBB v4.3 + New Features

How to deploy a qml application? What do I do with the modules?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
6 Posts 3 Posters 508 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    ChiefyChief
    wrote on 31 Jul 2021, 00:51 last edited by ChiefyChief
    #1

    Hello all,

    I'm currently trying to develop a QML application. I'm working with Qt5 and Qml, more specifically Qt5.12. I developed a really nice and simple app and everything is working perfectly. However, regarding the deployment of this application:

    1. Do I need to have these Qml modules within my installation directory?
    2. If so, can I "compile" the Qml files ahead of time so I don't need to include them within my installation directory?
    3. Furthermore, is it possible to direct the executable to look at a particular folder in order to look for the needed qml files?

    Danke schon,

    Adrian

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 2 Aug 2021, 19:13 last edited by
      #6

      No

      windeployqt and macdeployqt manage their deployment so that you do not need to worry about them.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Markkyboy
        wrote on 2 Aug 2021, 07:59 last edited by
        #2

        You haven't stated which OS you wish to deploy on.

        I'll assume you're using Windows, as am I, so the following method works for me, albeit a little tedious initially;

        https://wiki.qt.io/Deploy_an_Application_on_Windows

        Don't just sit there standing around, pick up a shovel and sweep up!

        I live by the sea, not in it.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChiefyChief
          wrote on 2 Aug 2021, 12:57 last edited by
          #3

          Ahh apologies I will be initially deploying to Windows and then Linux, soz Mac.

          Thanks for the link, so it does confirm my original thinking about needing to have the Qml files within the main directory.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 2 Aug 2021, 18:02 last edited by
            #4

            Hi,

            Do you mean your own QML code or the one from Qt ?
            If your own, you are usually better using Qt's resources system so you can embed it in your executable.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            C 1 Reply Last reply 2 Aug 2021, 19:03
            0
            • S SGaist
              2 Aug 2021, 18:02

              Hi,

              Do you mean your own QML code or the one from Qt ?
              If your own, you are usually better using Qt's resources system so you can embed it in your executable.

              C Offline
              C Offline
              ChiefyChief
              wrote on 2 Aug 2021, 19:03 last edited by
              #5

              @SGaist Heyo,

              I mean the ones from Qt, could these also be embedded within the exectuable?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 2 Aug 2021, 19:13 last edited by
                #6

                No

                windeployqt and macdeployqt manage their deployment so that you do not need to worry about them.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0

                1/6

                31 Jul 2021, 00:51

                • Login

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