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

Qt6 removed QRegExp #84

Open
crziter opened this issue Dec 22, 2020 · 4 comments · May be fixed by #96
Open

Qt6 removed QRegExp #84

crziter opened this issue Dec 22, 2020 · 4 comments · May be fixed by #96

Comments

@crziter
Copy link

crziter commented Dec 22, 2020

I were trying to use this project in a Qt6 based project but failed to compile due to missing QRegExp in Qt6.

@maxwell130631
Copy link

If you add
find_package(Qt6 REQUIRED
Core
Qml
Core5Compat
)

and
target_include_directories(SortFilterProxyModel PUBLIC
${CMAKE_CURRENT_LIST_DIR}
$<TARGET_PROPERTY:Qt6::Core,INTERFACE_INCLUDE_DIRECTORIES>
$<TARGET_PROPERTY:Qt6::Qml,INTERFACE_INCLUDE_DIRECTORIES>
$<TARGET_PROPERTY:Qt6::Core5Compat,INTERFACE_INCLUDE_DIRECTORIES>
Qt6::Core5Compat
)
you will get around that. But other errors will show up

mitchcurtis added a commit to mitchcurtis/SortFilterProxyModel that referenced this issue May 14, 2022
The PatternSyntax enum had to be removed as QRegularExpression only
supports Perl-compatible regular expressions.

As QVariant's comparison operators were removed, a simplified
comparison is now done as a starting point, but should probably
be extended to support more types.

Fixes oKcerG#84
Fixes oKcerG#86
@mitchcurtis mitchcurtis linked a pull request May 14, 2022 that will close this issue
mitchcurtis added a commit to mitchcurtis/SortFilterProxyModel that referenced this issue May 14, 2022
The PatternSyntax enum had to be removed as QRegularExpression only
supports Perl-compatible regular expressions.

As QVariant's comparison operators were removed, a simplified
comparison is now done as a starting point, but should probably
be extended to support more types.

Fixes oKcerG#84
Fixes oKcerG#86
arunpkio pushed a commit to arunpkio/SortFilterProxyModel that referenced this issue Nov 10, 2023
The PatternSyntax enum had to be removed as QRegularExpression only
supports Perl-compatible regular expressions.

As QVariant's comparison operators were removed, a simplified
comparison is now done as a starting point, but should probably
be extended to support more types.

Fixes oKcerG#84
Fixes oKcerG#86
@metalMajor
Copy link

Is there a working Qt 6.6 port somewhere? i tried these latest commits, but they crashed on the setSourceModel function saying that the "called object is not of the correct type". But I did the exact sample code in the readme.

@Daguerreo
Copy link

Is there a working Qt 6.6 port somewhere? i tried these latest commits, but they crashed on the setSourceModel function saying that the "called object is not of the correct type". But I did the exact sample code in the readme.

There are a few forks with this feature, I haven't tried those yet, however this could be the most updated: master...valaczka:SortFilterProxyModel:master

@metalMajor
Copy link

ok thanks
for my use case, it's pure qml so I found this blog, and that seems much simpler to filter a simple qml list:

https://martin.rpdev.net/2019/01/15/using-delegatemodel-in-qml-for-sorting-and-filtering.html

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

Successfully merging a pull request may close this issue.

4 participants