qml: add workarounds for issue assigning custom types to QObject properties

- on the python side, for pyqtProperty's with a setter, the pyqtProperty should be declared as QVariant type
- on the qml side, properties should be declared 'var', not the custom type.
This commit is contained in:
Sander van Grieken
2026-02-16 14:57:30 +01:00
parent dba6b751cc
commit 9772a6d5b6
24 changed files with 86 additions and 59 deletions
@@ -10,7 +10,7 @@ import "controls"
ElDialog {
id: dialog
property Invoice invoice
property var invoice // type Invoice
property bool payImmediately: false
property string broadcastTxid
@@ -24,7 +24,7 @@ ElDialog {
property bool _canMax: invoice.invoiceType == Invoice.OnchainInvoice
property Amount _invoice_amount: invoice.amount
property var _invoice_amount: invoice.amount // type: Amount
ColumnLayout {
anchors.fill: parent