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

Method setInsetRect

qcustomplot/qcustomplot.cpp:4957–4963  ·  view source on GitHub ↗

! If the inset placement (\ref setInsetPlacement) is \ref ipFree, this function is used to set the position and size of the element with the specified \a index to \a rect. \a rect is given in fractions of the whole inset layout rect. So an inset with rect (0, 0, 1, 1) will span the entire layout. An inset with rect (0.6, 0.1, 0.35, 0.35) will be in the top right corner of the layout,

Source from the content-addressed store, hash-verified

4955 QCPLayoutElement::setMinimumSize, \ref QCPLayoutElement::setMaximumSize) are enforced.
4956*/
4957void QCPLayoutInset::setInsetRect(int index, const QRectF &rect)
4958{
4959 if (elementAt(index))
4960 mInsetRect[index] = rect;
4961 else
4962 qDebug() << Q_FUNC_INFO << "Invalid element index:" << index;
4963}
4964
4965/* inherits documentation from base class */
4966void QCPLayoutInset::updateLayout()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected