Skip to content

Conversation

@jcfr
Copy link
Contributor

@jcfr jcfr commented Sep 1, 2025

Starting with Qt 5.15, the conversion functions between QList and QSet (e.g., QSet::fromList) have been deprecated in favor of range constructors.

This change updates the code to use the new range constructors to avoid deprecation warnings starting from Qt 5.14 (instead of Qt 6)

Related upstream Qt commits:


Note

For reference, those patches were developed in the context of the commontk/PythonQt fork.

Cherry picked from commits commontk/PythonQt@630e37667

Starting with Qt 5.15, the conversion functions between QList and QSet
(e.g., `QSet::fromList`) have been deprecated in favor of range constructors.

This change updates the code to use the new range constructors to avoid
deprecation warnings starting from Qt 5.14 (instead of Qt 6)

Related upstream Qt commits:
* qt/qtbase@92f984273 ("Deprecate conversion functions between QList and QSet", 2019-05-07)
* qt/qtbase@e59e5643b ("Use QT_DEPRECATED_X instead of Q_DECL_DEPRECATED_X", 2020-02-25)

(cherry picked from commit commontk/PythonQt@630e376)
@mrbean-bremen mrbean-bremen merged commit 0c739e6 into MeVisLab:master Sep 1, 2025
19 checks passed
@jcfr jcfr deleted the backport-commontk/fix-qt5.15-qset-fromlist-deprecation-warnings branch September 1, 2025 04:56
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 this pull request may close these issues.

2 participants