C++ (Qt)QVector<QPointF> data = yourModel->vectorOfPoints(); // QVector<PointF>CurveData cd(data, "curve 1");lightPlot2D->plotter->setCurveData(cd);
C++ (Qt)if (show) { const QVector<QPointF> &data = cd.data(); QPolygonF polyline; foreach(QPointF p, data) { double x = a11 * p.x() + a12; double y = a21 * p.y() + a22; if ((p.x() >= _curScaleX.min()) && (p.x() <= _curScaleX.max())) polyline << QPointF(x, y); }
C++ (Qt)if (show) { const QVector<QPointF> &data = cd.data(); QPolygonF polyline; foreach(QPointF p, data) { double x = a11 * p.x() + a12; double y = a21 * p.y() + a22; if ((p.x() >= _curScaleX.min() - 0.25*_curScaleX.width()) && (p.x() <= _curScaleX.max() + 0.25*_curScaleX.width())) polyline << QPointF(x, y); }
CSSQToolTip { background-color: rgb(200,200,255); border-color: darkslategray; border-width: 1px; border-style: solid; padding: 3px; font: bold; /*border-radius: 3px;*/ opacity: 200;}
C++ (Qt)void setCurrentPointLabel(QLabel *label);