Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can one use this for QVariantList? #90

Open
thehamzan6 opened this issue Jun 2, 2021 · 0 comments
Open

How can one use this for QVariantList? #90

thehamzan6 opened this issue Jun 2, 2021 · 0 comments

Comments

@thehamzan6
Copy link

thehamzan6 commented Jun 2, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant