Skip to content

Conversation

@goqusan
Copy link
Contributor

@goqusan goqusan commented May 20, 2025

The QRImageProvider can be used to display QR codes in QML Image.

The new control QRImage wraps the new provider in a convenient way.

The RequestPayment page is updated to showcase QRImage usage.

@goqusan goqusan force-pushed the qrimageprovider branch 2 times, most recently from b5da13d to 16a22cd Compare May 20, 2025 19:40
Copy link
Collaborator

@johnny9 johnny9 left a comment

Choose a reason for hiding this comment

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

Concept ACK

Just some whitespace fix before approval

@goqusan goqusan force-pushed the qrimageprovider branch from 16a22cd to f445e65 Compare May 20, 2025 21:05
Copy link
Contributor

@MarnixCroes MarnixCroes left a comment

Choose a reason for hiding this comment

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

f445e65

The QR-code is displayed and I'm able to scan it ✅
However, if I scan it with a mobile Bitcoin wallet it cannot process it?

@johnny9
Copy link
Collaborator

johnny9 commented May 20, 2025

The QR-code is displayed and I'm able to scan it ✅ However, if I scan it with a mobile Bitcoin wallet it cannot process it?

Which wallet? I scanned with Zeus and it recognized it as an address to send to. I also checked sparrow and it also displays just a string containing the address in the QR code on the Receive tab.

Copy link
Collaborator

@johnny9 johnny9 left a comment

Choose a reason for hiding this comment

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

tACK f445e65

Tested on Ubuntu. Hard coded address QR was recognized using phone camera.

@GBKS
Copy link
Contributor

GBKS commented May 21, 2025

Does the QR code contain a BIP21 URI? If so, the default OS camera should be able to open the wallet as needed (if the wallet has registered for the bitcoin: URI scheme).

@MarnixCroes
Copy link
Contributor

The QR-code is displayed and I'm able to scan it ✅ However, if I scan it with a mobile Bitcoin wallet it cannot process it?

Which wallet? I scanned with Zeus and it recognized it as an address to send to. I also checked sparrow and it also displays just a string containing the address in the QR code on the Receive tab.

I tried with Phoenix, Breez and Blue Wallet. Neither work.
Just tried with Zeus and that is the only one that works for me, indeed.

@hebasto
Copy link
Member

hebasto commented May 22, 2025

Does the QR code contain a BIP21 URI?

No, it does not. Should be amended in a follow up, I presume.

@hebasto hebasto merged commit b411e58 into bitcoin-core:main May 22, 2025
8 of 9 checks passed
johnny9 pushed a commit to johnny9/bitcoin-core-app that referenced this pull request Jul 4, 2025
154c8e6 qml: Use QRImage in RequestPayment (goqusan)
c46517b qml: Add QRImage control (goqusan)
9e1f8a0 qml: Add QRImageProvider (goqusan)

Pull request description:

  The `QRImageProvider` can be used to display QR codes in QML `Image`.

  The new control `QRImage` wraps the new provider in a convenient way.

  The `RequestPayment` page is updated to showcase `QRImage` usage.

ACKs for top commit:
  johnny9:
    tACK 154c8e6

Tree-SHA512: eb4b57245943ca34495e10de6a2bc8e28a6d1148f5aa99d7150d48c2a49e9049c2c4d3b3a481780c9e55efa07c3caed45f18bb2f8aaa1c5bdb621cadadaa82df
tx-signer450 added a commit to tx-signer450/gui-qml that referenced this pull request Oct 20, 2025
154c8e6a260b2d223d6e0171911d44bae642abf8 qml: Use QRImage in RequestPayment (goqusan)
c46517b41272037a526f640f8fe231fac988d274 qml: Add QRImage control (goqusan)
9e1f8a00863cb2adc270acfa7d611ebc36d37197 qml: Add QRImageProvider (goqusan)

Pull request description:

  The `QRImageProvider` can be used to display QR codes in QML `Image`.

  The new control `QRImage` wraps the new provider in a convenient way.

  The `RequestPayment` page is updated to showcase `QRImage` usage.

ACKs for top commit:
  johnny9:
    tACK 154c8e6a260b2d223d6e0171911d44bae642abf8

Tree-SHA512: eb4b57245943ca34495e10de6a2bc8e28a6d1148f5aa99d7150d48c2a49e9049c2c4d3b3a481780c9e55efa07c3caed45f18bb2f8aaa1c5bdb621cadadaa82df
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.

5 participants