Hi,
I'm having a simple problem but I can't seem to find the answer.
I want to set my plot's width and color. I can set one or the other using QPen but I can't figure out how to set them both! If I try to set them both separately the first one is overwritten by the second. What am I missing?
curve
->setPen
(QPen(Qt
::red));
pen.setWidth(3);
curve->setPen(pen);
QwtPlotCurve * curve;
curve->setPen(QPen(Qt::red));
QPen pen;
pen.setWidth(3);
curve->setPen(pen);
To copy to clipboard, switch view to plain text mode
thanks
Oh Wow, nevermind, I'm stupid
pen.setWidth(lineWidth);
pen.setColor(Qt::blue);
curve->setPen(pen);
QPen pen;
pen.setWidth(lineWidth);
pen.setColor(Qt::blue);
curve->setPen(pen);
To copy to clipboard, switch view to plain text mode
Bookmarks