It is also possible to modify some unexposed axis properties in a similar way. 1, add a coordinate axis First add QCHART, QCHARTVIEW, and the code is as follows: Then define two coordinate axes, one is used as the x-axis, one for the Y-axis, Add header files: Create two QValueax. Font weighting is classified on a scale from 0 to 99, where a weight of 0 is ultralight, and 99 is extremely black. This basic type is provided by the QtQuick import. Not all modifiable properties in Qt Charts C ++ are modifiable in QML, although it is possible to access the QChart through filtering using findChild and items. When integrating with C++, note that any QFont value passed into QML from C++ is automatically converted into a font value, and vice-versa.