Sorting in pure qml.



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.