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. Where is the RIgnt place for .qml files : qrc or QML folder?
Qt 6.11 is out! See what's new in the release blog

Where is the RIgnt place for .qml files : qrc or QML folder?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 1.3k 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.
  • K Offline
    K Offline
    Kofr
    wrote on last edited by
    #1

    What approach shall I take when developing?
    Actualy I can work with qrc and just files on disk and import "qrc:/ ..." or "/ ..."
    But what is the right approach?

    raven-worxR 1 Reply Last reply
    0
    • K Kofr

      What approach shall I take when developing?
      Actualy I can work with qrc and just files on disk and import "qrc:/ ..." or "/ ..."
      But what is the right approach?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @Kofr
      there is no right or wrong. Both are valid and works.
      But the qrc way is the most "bulletproof" one.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      K 1 Reply Last reply
      1
      • raven-worxR raven-worx

        @Kofr
        there is no right or wrong. Both are valid and works.
        But the qrc way is the most "bulletproof" one.

        K Offline
        K Offline
        Kofr
        wrote on last edited by
        #3

        @raven-worx so, am I right that QML files will stay in Local disk after building an app?

        raven-worxR 1 Reply Last reply
        0
        • K Kofr

          @raven-worx so, am I right that QML files will stay in Local disk after building an app?

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @Kofr said:

          @raven-worx so, am I right that QML files will stay in Local disk after building an app?

          i am afraid i dont understand your question.
          When using qrc they are compiled into your binary and thus are loaded into the memory.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          veryqtpersonV 1 Reply Last reply
          0
          • raven-worxR raven-worx

            @Kofr said:

            @raven-worx so, am I right that QML files will stay in Local disk after building an app?

            i am afraid i dont understand your question.
            When using qrc they are compiled into your binary and thus are loaded into the memory.

            veryqtpersonV Offline
            veryqtpersonV Offline
            veryqtperson
            wrote on last edited by
            #5

            @raven-worx so, QtQuickCompiler is "turned on" by default? I mean, that's what it does - compiles QML files into binary, so they won't lay around binaries as a plain text files? Because I don't see any QML files in my builds as well and I didn't do anything special to achieve that.

            raven-worxR 1 Reply Last reply
            0
            • veryqtpersonV veryqtperson

              @raven-worx so, QtQuickCompiler is "turned on" by default? I mean, that's what it does - compiles QML files into binary, so they won't lay around binaries as a plain text files? Because I don't see any QML files in my builds as well and I didn't do anything special to achieve that.

              raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by raven-worx
              #6

              @veryqtperson
              this has nothing to do with QtQuickCompiler.
              Files are copied 1:1 into qrc - which is actually a cpp file with some binary arrays. This is completely independent of the type of the file.

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              1

              • Login

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