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. 'Repeater' not displaying the data from its DataModel in fetched sequence
Forum Updated to NodeBB v4.3 + New Features

'Repeater' not displaying the data from its DataModel in fetched sequence

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 562 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.
  • L Offline
    L Offline
    LakshmiSaripella
    wrote on last edited by
    #1

    Hello,

    While working with Qt5.0.2, we are encountering a strange issue of 'Repeater' not displaying the data from its DataModel in given sequence. Below is the DataModel of the repeater that should be shown in qml page.

    @
    EmpId Name PhotoFileName Designation
    1475622 Edwina 1475622.png Wing Head
    1475623 Mounica 1475623.png Developer
    1475624 Prem 1475624.png Designer
    1475625 Christopher 1475625.png Documenter
    1475626 Akshara 1475626.png Tester
    @

    Expected display: First element MUST be WingHead. Rest all employees should follow wing head.

    In spite of fetching the data properly i.e. WingHead details as first row (using order by clause in select SQL statement from DB), the display is not in accordance with fetched data. The order (sequence) of display is changing randomly and I do not comprehend the reason behind it.

    Please guide me how to have the required display sequence for repeater data model all the time

    Thanks.

    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