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
Forum Updated to NodeBB v4.3 + New Features

Best Practices for QML Code Size

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 174 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.
  • fcarneyF Offline
    fcarneyF Offline
    fcarney
    wrote on 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

    • Login

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