read flight fact parametr

I have been trying to create a new UI in order to display the flight time in qgc software. I have designed the UI but I am not able to understand how I can fetch the Flight data and bind it to UI. I know about the fact system and also there is a parameter named flightTime in vehicle.cc file but how I can use it ?