[PyQt] QML with a event on delegate - possible bug
amine
amine.bachri at afpa.fr
Thu May 17 12:58:09 BST 2018
Hello,
I have discovered the pyQt binding (in fact also Python), and i found it
very nice!
Everything works perfectly well, however i found a strange behavior looking
like a bug :
In a delegate i activate a javascript after an event, something like :
onClicked: {
idTextTest.text = "clicked ok"
Context.doActionInPython("enleveDomino", index)
}
This code works fine.
But the almost same code
onClicked: {
Context.doActionInPython("enleveDomino", index)
idTextTest.text = "clicked ok" #show a :
ReferenceError: idTextTest is not defined
}
doesn't find the obvious Component.
I guess this is not normal,
i've settled a small project in :
https://github.com/mine-bach/pyqt5_qmlListProperty
Have a good day!
ab
--
Sent from: http://python.6.x6.nabble.com/PyQt-f1792048.html
More information about the PyQt
mailing list