How can return a QList or Qobject directly from Q_INVOKABLE method to a var or Qtobject of Qml (without using model)?

后端 未结 0 561
情歌与酒
情歌与酒 2021-01-05 03:51

I wanna return a QList or Qobject from Q_INVOKABLE method to a var or Qtobject of Qml but it doesn’t work While the setContextProperty for a QList works.

main.cpp

相关标签:
回答
  • 消灭零回复
提交回复
热议问题