MCPcopy Create free account
hub / github.com/collin80/SavvyCAN / setViewport

Method setViewport

qcustomplot.cpp:13382–13387  ·  view source on GitHub ↗

! Sets the viewport of this QCustomPlot. Usually users of QCustomPlot don't need to change the viewport manually. The viewport is the area in which the plot is drawn. All mechanisms, e.g. margin caluclation take the viewport to be the outer border of the plot. The viewport normally is the rect() of the QCustomPlot widget, i.e. a rect with top left (0, 0) and size of the QCustomPlot widg

Source from the content-addressed store, hash-verified

13380 savePdf, etc. by temporarily changing the viewport size.
13381*/
13382void QCustomPlot::setViewport(const QRect &rect)
13383{
13384 mViewport = rect;
13385 if (mPlotLayout)
13386 mPlotLayout->setOuterRect(mViewport);
13387}
13388
13389/*!
13390 Sets the device pixel ratio used by the paint buffers of this QCustomPlot instance.

Callers

nothing calls this directly

Calls 1

setOuterRectMethod · 0.80

Tested by

no test coverage detected