Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a QML file where i am displaying update of my device of the network.
C#
Text{
    x: 110; y: 84
    text : pIso.gVolt(pIso.gVolt); color : "white"; font.pointSize: 6; textFormat: Text.StyledText


    onTextChanged: {
//here I want to add the code to write update value of device into log file(CSV)
}
}

I want to get the idea do I need to call the C++ function OR Add code directly in QML file for writing and appending into log file.??
Is it possible to do this with Java script??

What I have tried:

This is first time i am interacting with QML. I dont know how to hook c++ in QML file
Posted
Updated 4-Aug-16 2:42am
v2

1 solution

If you want to write some file data you cant use javascript. So use C++. The C++ needs an executable to run.

Read the Qt documentation and look at some sample code. Good luck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900