Skip to content

qml: Use Settings type from QtCore on Qt >= 6.5 - #795

Merged
hebasto merged 3 commits into
bitcoin-core:qt6from
hebasto:260717-settings
Jul 19, 2026
Merged

qml: Use Settings type from QtCore on Qt >= 6.5#795
hebasto merged 3 commits into
bitcoin-core:qt6from
hebasto:260717-settings

Conversation

@hebasto

@hebasto hebasto commented Jul 17, 2026

Copy link
Copy Markdown
Member

The Settings type from Qt.labs.settings is deprecated since Qt 6.5. Introduce a build-time-selected AppSettings compatibility type that uses QtCore on Qt >= 6.5 and Qt.labs.settings on older versions, keeping compatibility with the minimum required Qt 6.2.

Fixes #780.

An alternative to #781.

@hebasto
hebasto marked this pull request as draft July 17, 2026 21:28
@hebasto
hebasto marked this pull request as ready for review July 17, 2026 23:04
@hebasto

hebasto commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

cc @johnny9 @pinheadmz

hebasto added 3 commits July 18, 2026 11:49
Run `bitcoinqml_qmltests` against QML files embedded into the test
binary instead of the source tree, so that components resolve in the
same `qrc:/` URL space as in the application. This is required for
the following commit.
The `Settings` type from `Qt.labs.settings` is deprecated since Qt 6.5.
Introduce a build-time-selected `AppSettings` compatibility type that
uses `QtCore` on Qt >= 6.5 and `Qt.labs.settings` on older versions,
keeping compatibility with the minimum required Qt 6.2.
The existing Ubuntu 24.04 job builds against Qt 6.4, which exercises
only the `Qt.labs.settings` variant of the `AppSettings` type. Add a
job with Qt 6.10 to also cover the `QtCore` variant.

@johnny9 johnny9 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK ea12a28

Tested on ubuntu 24.04 (6.4.2) and Fedora 44 (6.11.1)

I think this is worth doing as we likely won't be able to avoid some of these compatibility issues at the moment.

@hebasto
hebasto merged commit c4be0bd into bitcoin-core:qt6 Jul 19, 2026
7 checks passed
@hebasto
hebasto deleted the 260717-settings branch July 19, 2026 09:33
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.

Deprecated Settings from Qt.labs.settings

2 participants