The dot, roughly speaking, it is the 'member access operator', it allows your code to access an object member (a public variable or a method).
Quote:
QChart* chart = chartView().chart();
The above code looks 'strange' to the novice because the dot is chained to a function call. The interpretation however is rather simple: the
chartView()
call returns an object, then the method
chart()
of the object itself is called, eventually the result of the method call is assigned to the
chart
pointer variable.