Skip to content

fix: Deprecated Settings from Qt.labs.settings - #781

Closed
uqlidi wants to merge 2 commits into
bitcoin-core:qt6from
uqlidi:fix/deprected-settings
Closed

fix: Deprecated Settings from Qt.labs.settings#781
uqlidi wants to merge 2 commits into
bitcoin-core:qt6from
uqlidi:fix/deprected-settings

Conversation

@uqlidi

@uqlidi uqlidi commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

use QtCore instead of Qt.labs.settings for Settings because it's deprecated and would be removed later

fix #780

@uqlidi

uqlidi commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

we needed to bump ubuntu to 26.04 because the older version doesn't ship Settings in QtCore

see: https://github.com/bitcoin-core/gui-qml/actions/runs/29263460032/job/86863608017

@hebasto

hebasto commented Jul 16, 2026

Copy link
Copy Markdown
Member

we needed to bump ubuntu to 26.04...

Actually, we maintain backward compatibility with our minimum required Qt version: https://github.com/bitcoin/bitcoin/blob/dc282ff31d1cc97507530a541d9cec8a8f6a6ef4/doc/dependencies.md

@hebasto

hebasto commented Jul 19, 2026

Copy link
Copy Markdown
Member

Closing in favour of #795.

@hebasto hebasto closed this Jul 19, 2026
hebasto added a commit that referenced this pull request Jul 19, 2026
ea12a28 ci: Add Ubuntu 26.04 job to cover Qt >= 6.5 code path (Hennadii Stepanov)
a8e0403 qml: Use `Settings` type from `QtCore` on Qt >= 6.5 (Hennadii Stepanov)
3996808 test: Load QML test files from the resource system (Hennadii Stepanov)

Pull request description:

  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.

ACKs for top commit:
  johnny9:
    ACK ea12a28

Tree-SHA512: 1b67035ae6ecbc5e3a2b5641f22c53ca402c51d89906224962301a143849611069b336aef5b244576acdf353142bddf107c4234f24df958962a3a33fe63a8ad0
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