f321x
63c224cb53
add qr reading from file to ScanQRTextEdit and SendTab
...
There was no ability to read qr codes contained in image files. This
could lead to confusion in some contexts, as `on_file_input()` of
ScanQRTextEdit will read the whole content of the file (instead of
looking for qr codes). The revealer plugin for example generates png
files containing qr codes and uses the `ScanQRTextEdit` to get user
input, for the user it would seem logical to click on 'Read from file'
to load the generated file, however this will result in the wrong data
being loaded. Having the option to explicitly load a QR from file makes
this clear. Also it seems useful, especially considering reading QR from
screenshots doesn't work on wayland.
2025-05-06 13:38:50 +02:00
SomberNight
1ee6361c7e
qt gui: qt6 migration follow-ups
2024-09-18 15:48:50 +00:00
SomberNight
cfe8502f96
qt desktop gui: upgrade qt5->qt6
...
closes https://github.com/spesmilo/electrum/issues/8007
2024-09-18 15:48:38 +00:00
SomberNight
d89f9846b9
qt/qrreader(zbar): don't call callback if user closes camera window
...
- without this, in send tab paytoedit, try_payment_identifier will get called and it will error
https://github.com/spesmilo/electrum/blob/df1b9a223c77f4597a75df4e040754a58185151f/electrum/gui/qt/paytoedit.py#L153
- also, in all text fields this used to result in clearing the current text (but now it is kept instead)
2024-01-10 20:39:58 +00:00
SomberNight
417423ecd7
qt: PayToEdit: fix input_qr_from_camera
...
closes https://github.com/spesmilo/electrum/issues/8342
probably regression from 1f4cedf56a
2023-04-24 00:58:41 +00:00
Jonas Lundqvist
b7b53e56bc
Qt PayToEdit: add option to scan QR code from screen(shot)
...
this ports the following commits:
https://github.com/Electron-Cash/Electron-Cash/commit/448376e4410951f12f53ce42b59bdfe856afc66b
https://github.com/Electron-Cash/Electron-Cash/commit/6053f6f696c3f65a93a84e570454e8a1d8c5f490
2022-06-01 19:10:01 +02:00
SomberNight
9d125118da
qrreader.get_qr_reader: raise instead of returning None
...
move MissingQrDetectionLib to core lib
2022-06-01 18:54:24 +02:00
SomberNight
013cf869f1
qt: qrreader: keep both old and new toolchain; try to abstract it away
2021-06-25 16:52:02 +02:00
SomberNight
c1dbcab9bb
qt: new qrreader using QtMultimedia; drop CalinsQRReader(mac)
...
This commit ports the work of EchterAgo and cculianu from Electron-Cash,
to implement a new toolchain to scan qr codes.
Previously, on Linux and Win, we have been using zbar to access the camera
and read qrcodes; and on macOS we used CalinsQRReader (an objective-C
project by cculianu).
The new toolchain added here can use QtMultimedia to access the camera,
and then feed that image into zbar. When used this way, zbar needs
fewer dependencies and is easier to compile, in particular it can be
compiled for macOS.
The new toolchain works on all three platforms, with some caveats
(see code comments in related commits) -- so we also keep the end-to-end
zbar toolchain; but at least we can drop CalinsQRReader.
The related changes in Electron-Cash are spread over 50+ commits (several PRs and direct
pushes to master), but see in particular:
https://github.com/Electron-Cash/Electron-Cash/pull/1376
some other interesting links:
https://github.com/Electron-Cash/Electron-Cash/commit/b2b737001c8cc41a38fa580ea252a6d24e08f5d5
https://github.com/Electron-Cash/Electron-Cash/commit/163224cf1fad3af63f2d3cbe68a34fb8ff279af6
https://github.com/Electron-Cash/Electron-Cash/commit/3b31e0fcb13f67646228ff42c0dd39d2a0912291
https://github.com/Electron-Cash/Electron-Cash/commit/eda015908e9d6ea9a0adfbda9db55b929c0926ba
https://github.com/Electron-Cash/Electron-Cash/pull/1545
https://github.com/Electron-Cash/Electron-Cash/commit/052aa06c23b939adcea07c701f70ae28ebcf9e0a
2021-06-25 16:51:58 +02:00