Skip to content

How can one use this for QVariantList? #90

Description

@thehamzan6

Say I have an itemmodel that contains a QVariantList, let's called it "names" and I want to sort it using a combobox, how would one do so with the QSortFilterModel?

    SortFilterProxyModel {
        id: gamesProxyModel
        sourceModel: model
        filters: [
            AnyOf {
                 RegExpFilter {
                    roleName: "names"
                    pattern: comboBox.displayText
                    caseSensitivity: Qt.CaseInsensitive
                }
       ]
   }

This doesn't work when I try it like so.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions