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. Is it ok when I create QML qtquick file for every UI block?
Forum Updated to NodeBB v4.3 + New Features

Is it ok when I create QML qtquick file for every UI block?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 200 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.
  • 9 Offline
    9 Offline
    925code
    wrote on last edited by
    #1

    It’s kinda weird question but I just learned qt quick for a week or so, but I found it’s so powerful with UI designerB8DAF9AC-D822-4B45-A2F8-074F9C3FBD53.png
    Every UI element ( a page, a part of a page that has complex element, a card….) I created a QML file and at the main view, I call them as component and set Id for each one( so in this way they’re not visible)
    Every time I need them to show up, for example in a stack view, I push them in, or in gridview, I set them as the delegate, I don’t know if this way of using QML file is right or wrong( I treat all QML as control with properties).![alt text](image url)
    I don’t know if this way is good for long run, in the image attached, lef panel is a stackview with content is a qml file, in that qml is another set of multiple qml file that throw in a column…
    Sorry for my bad english

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      There is nothing like a wrong. It is better to create the individual loadable qml files. You should load or create objects from qml which are not visible. If one screen itself is very complete, it is better to break them into smaller pieces and use them.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      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