Hi,
Hi can't make Qobject.findChildren work with delegate.
qml
ListView {
width: parent.width
height: parent.height
model: [1,2,3,4,5]
objectName: "blob"
delegate:
Button {
objectName: "bla"
height: 100
width: parent.width
text:"mokok" + modelData
onClicked: ddb.child(root)
}
}and on the python side, inside de ddb QObject :
python
@Slot(QObject)
def child(self, un):
print(un.findChildren(QObject, QRegExp('bla')))it retuns [].
Using other objectName works well.
I only have this matter with delegate not with other stuff.
any idea on it ?