Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved GridView / ListView : wrong filling direction with Loader as delegate

    QML and Qt Quick
    1
    1
    250
    Loading More Posts
    • 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.
    • V
      Vi67 last edited by

      When using GridView or ListView with a Loader as delegate, the filling direction is always from bottom/right to top/left.

      Loaders are ready one by one from the last to the first item in the ListModel.

      Do you know how to inverse this mechanism ? It's more logical and clean to have elements appearing from left to right.

      This is an example :

      GridView/ListView {
      
          model: ListModel {
              id: myList
          }
      
           delegate: Component {
      
              Loader {
                  width: ...
                  height: ...
                  asynchronous: true
                  visible: status == Loader.Ready
      
                  sourceComponent: Component {
      
                      Item {
                          ....
                      }
                  }
              }
      }
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post