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

QList can‘t be sorted #103

Closed
CierConnor opened this issue Nov 20, 2022 · 3 comments
Closed

QList can‘t be sorted #103

CierConnor opened this issue Nov 20, 2022 · 3 comments

Comments

@CierConnor
Copy link

作者你好!我不知道这算不算是一个bug,我无法对QList中的元素进行排序,我使用QList.sort((student1,student2)->student1.age-student.age)进行排序执行会报错:
image
问题似乎是出在QList.listIterator()得到的listIterator是不能执行set()方法的。
请问是否还有没有别的排序方法?因为c++的std::qSort在java里并不能用。

@omix
Copy link
Contributor

omix commented Nov 20, 2022

Thanks for reporting. QtJambi's ListIterator iterator is based on immutable native iterators. However, I have implemented a bugfix for this. It will be available in the next release.

@CierConnor
Copy link
Author

Wow, thanks for the answer!

Thanks for reporting. QtJambi_s ListIterator iterator is based on immutable native iterators. However, I have implemented a bugfix for this. It will be available in the next release.

omix added a commit that referenced this issue Dec 28, 2022
Bugfix Issue #121
Bugfix Issue #118
Bugfix Issue #103
@omix
Copy link
Contributor

omix commented Dec 28, 2022

Maven release is coming soon

@omix omix closed this as completed Dec 28, 2022
omix added a commit that referenced this issue Dec 28, 2022
Bugfix Issue #121
Bugfix Issue #118
Bugfix Issue #103
omix added a commit that referenced this issue Dec 28, 2022
Bugfix Issue #121
Bugfix Issue #118
Bugfix Issue #103
omix added a commit that referenced this issue Jul 25, 2023
Bugfix Issue #121
Bugfix Issue #118
Bugfix Issue #103
omix added a commit that referenced this issue Jul 25, 2023
Bugfix Issue #121
Bugfix Issue #118
Bugfix Issue #103
omix added a commit that referenced this issue Jul 25, 2023
Bugfix Issue #121
Bugfix Issue #118
Bugfix Issue #103
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

2 participants