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. GridView / ListView : wrong filling direction with Loader as delegate
Forum Updated to NodeBB v4.3 + New Features

GridView / ListView : wrong filling direction with Loader as delegate

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 341 Views 1 Watching
  • 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 Offline
    V Offline
    Vi67
    wrote on 1 Feb 2016, 14:10 last edited by
    #1

    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
    0

    1/1

    1 Feb 2016, 14:10

    • 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