从QML文件调用函数 [英] Calling function from QML file
本文介绍了从QML文件调用函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想调用c ++函数writeintocsvFile()将数据写入/附加到QML的CSV文件中。如果有人指导我如何做到这一点会很好吗?
我尝试过:
从QML调用函数的方法
I want to call c++ function "writeintocsvFile()" to write/append data into CSV file from QML. Would be nice if someone guide me how i can do this??
What I have tried:
method to call function from QML
推荐答案
检查这个似乎有类似问题答案的帖子。
[已解决]从C ++调用函数QML | Qt论坛 [ ^ ]
此外,请查看以下文章 -
集成QML和C ++ Qt QML 5.7 [ ^ ]
希望,它有帮助:)
Check this thread which seems to have a answer for a similar question.
[solved] To call function in C++ from QML | Qt Forum[^]
Also, check following article-
Integrating QML and C++ | Qt QML 5.7[^]
Hope, it helps :)
这篇关于从QML文件调用函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文