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. ListView require items from model at back order
Forum Updated to NodeBB v4.3 + New Features

ListView require items from model at back order

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 948 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.
  • M Offline
    M Offline
    maxim.prishchepa
    wrote on last edited by
    #1

    Hello All!
    I have a some model, and when i connect it to ListView (QML Element), this ListView start request indexes from the last row at model.
    Any ideas why is that?

    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JvdGlind
      wrote on last edited by
      #2

      How do you mean "start requests indexes from last row at model."?

      One of the things I can think of is:
      @verticalLayoutDirection: ListView.BottomToTop@

      How did you implement your model?

      Jeffrey VAN DE GLIND
      Principle Consultant @ Nalys
      www.nalys-group.com

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

        This should not be the case with normal ListView to Model. Some settings like the ListView.BottomToTop must be making this. You can try with simple example. May be you look at simple example given in the Qt Assistant. After this you can compare with your example.

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

        1 Reply Last reply
        0
        • M Offline
          M Offline
          maxim.prishchepa
          wrote on last edited by
          #4

          Tnx All 4 answers!!!

          Model contains sorted list of items. I check once again model and made sure so order in list is correct. When I add to ListView delegate based at Loader and set property "asynchronous: true" i seen so items start showing from the end of model list.

          list view is more then standard:
          @ListView {
          anchors.margins: 8
          anchors {
          top: header.bottom
          left: parent.left
          right: parent.right
          bottom: parent.bottom
          }
          clip: true
          model: myModel
          delegate: myDelegate
          }@

          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

          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