Questions regarding GTK4 ColumnView

Hi there,

I have trouble understanding how to sort the following columnview (minimum working example):
https://paste.gnome.org/phbnbqbl3

My follow-up question would be:
If ColumnView uses a single model for multiple columns, and StringList is a list of strings, not a list of list. Therefor I’m probably expected to implement the ListModel interface in an own class for multiple columns?

Many thanks in advance.

Yes, you should implement your own multi-columns ListModel class now,

@esodan 's library: Daniel Espinosa Ortiz / libvda · GitLab (gnome.org) is a great example to show this scene.

1 Like

Thank you very much.

For reference, sorting currently does not work due to GtkExpression missing in the Python bindings:
https://gitlab.gnome.org/GNOME/pygobject/-/issues/457

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.