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 Practices for QML Code Size

Best Practices for QML Code Size

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 162 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.
  • F Offline
    F Offline
    fcarney
    wrote on 21 Aug 2019, 20:57 last edited by
    #1

    I am looking for ideas of best practices for QML file code size. I am maintaining some existing code and some of the QML files sprawl over multiple pages. I am looking to compartmentalize the code to hopefully create more re-usable components/files. It should also make each file more maintainable as it will live in its own little world.

    So I am asking if people have any rules of thumb for:

    • qml file length in lines
    • obvious breakup points
    • any other ideas for compartmentalizing the code

    I have looked through some of the best practices pages, but am not really seeing this kind of information.

    As part of this effort I will be updating everything I can from QML 1.x libraries to QML 2.x libraries where appropriate.

    C++ is a perfectly valid school of magic.

    1 Reply Last reply
    0

    1/1

    21 Aug 2019, 20:57

    • Login

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