Passing parameters from C++ to QML

后端 未结 2 1421
长发绾君心
长发绾君心 2021-01-06 18:53

I want to pass some parameters from C++ to QML, so that QML can do something with them.

Somewhat like this:

void MyClass::myCplusplusFunction(int i,          


        
2条回答
  •  遥遥无期
    2021-01-06 19:38

    You can find the whole documentation here:

    http://doc.qt.io/qt-4.8/qtbinding.html

提交回复
热议问题