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. Sorting in pure qml.
Qt 6.11 is out! See what's new in the release blog

Sorting in pure qml.

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.1k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello,

    I have a TableView showing a ListModel. A few string and number columns are shown. The member "sortIndicatorVisible" is set to true.

    Now there are sort Indicators visible, but clicking them has no effect. Is there an easy way to use default string/number sorting in qml?

    The TableView_documentation says:
    bq. Note: The view itself does not sort the data.
    So would this be a task for the model?

    All I found on the internet involves cpp or is about special sorting behaviour.

    Thanks in advance.

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved