MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / setData

Method setData

qcustomplot/qcustomplot.cpp:20142–20145  ·  view source on GitHub ↗

! \overload Replaces the current data container with the provided \a data container. Since a QSharedPointer is used, multiple QCPGraphs may share the same data container safely. Modifying the data in the container will then affect all graphs that share the container. Sharing can be achieved by simply exchanging the data containers wrapped in shared pointers: \snippet documentation/

Source from the content-addressed store, hash-verified

20140 \see addData
20141*/
20142void QCPGraph::setData(QSharedPointer<QCPGraphDataContainer> data)
20143{
20144 mDataContainer = data;
20145}
20146
20147/*! \overload
20148

Callers

nothing calls this directly

Calls 1

clearMethod · 0.60

Tested by

no test coverage detected