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. Best QML file length?

Best QML file length?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 565 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.
  • S Offline
    S Offline
    stan.m
    wrote on last edited by
    #1

    What is a good length for a QML file? I searched a few "QML Best Practices" pages but did not find anything.

    Is there a "Best Practice" regarding the number of lines of code in a QML file?

    raven-worxR 1 Reply Last reply
    0
    • S stan.m

      What is a good length for a QML file? I searched a few "QML Best Practices" pages but did not find anything.

      Is there a "Best Practice" regarding the number of lines of code in a QML file?

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

      @stan.m
      no, but this anyway heavily depends on the target machine's hardware capabilities

      --- 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

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

        @stan.m
        no, but this anyway heavily depends on the target machine's hardware capabilities

        S Offline
        S Offline
        stan.m
        wrote on last edited by
        #3

        @raven-worx
        Thank you for the response.

        How does QML file length depend on the target machine's hardware capabilities?

        I was considering the impact of file length on readability and code maintainability... are you referring to how the target compiles the QML on-the-fly or whether or not the target has hardware acceleration for graphics?

        raven-worxR 1 Reply Last reply
        0
        • S stan.m

          @raven-worx
          Thank you for the response.

          How does QML file length depend on the target machine's hardware capabilities?

          I was considering the impact of file length on readability and code maintainability... are you referring to how the target compiles the QML on-the-fly or whether or not the target has hardware acceleration for graphics?

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

          @stan.m
          QML is basically interpreted (unless you use the qmlcompiler)
          Also if you hold the file/module/component size small it is ensured that only the necessary parts are loaded.
          The stronger the machine the more you wont notice any performance impacts of course.

          --- 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
          0

          • Login

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