Pyside6 to QML QAbstractTableModel Data Method, returning a dictionary to var type
-
I'm using python pyside6 QAbstractTableModel to a QML TableView, but I have an issue where in the table model data() method it returns a python dictionary for example {"type": "string"} and in the TableView delegate I have model.control.type but I get an error saying its "undefined". It seems if I return a string instead of a python dictionary it works but I know qml can recieve python dictionaries as I've done so before with QObject properties
Any idea if the data() method is just incapable of retuning a var?
-
Hi and welcome to devnet,
Can you share a minimal runnable script that shows this ?
Also, which version of PySide6 are you using ?
With which version of Python ?