Q: Qt cpp code..how object.function1.function2 works I am unable to get how this will work...
how object.function1.function2 works
following is the code
l_floatValue = l_objMeter.getWATTHrs().getChannelA();

A: function 1 retrun you object and you call method of it

A: Please consider following example
  int len = QString(" TEST ").simplified().length();

Suppose
  QString test = QString(" TEST ");  // will create string object of lengh 6
  QString simTest = test.simplified(); // Will create string of len 4 remove white spaces
  int len = simTest.length(); // len 4

This is how program will work
