I am a beginner at Qt and QML. I am writing an application in python (PySide6) and I can't figure out if I can use a single object as a model? There are plenty of resources on how to use ListModels which, as the name suggests, contain multiple objects in a list. you can usually do something like this:
ListView {
anchors.fill: parent
model: myModel // defined in py or c++ class
delegate: Text {
text: model.display
}
}
My question is: Is there any way you can do something like that with a SINGLE object, not a list of objects? Can you please point me towards a QML class that could do that or any useful resources? My only goal is to connect a single object from my python code to the QML file.