that's really strange.
you could try to change the declaration, but I don't think that'll make a difference:
PlotPicker *d_picker;//<-----
PlotPicker *d_picker;//<-----
To copy to clipboard, switch view to plain text mode
this is my initialization:
d_picker
->setTrackerPen
(QColor(Qt
::darkGreen));
d_picker = new PlotPicker (QwtPlot::xBottom, QwtPlot::yLeft, QwtPicker::PointSelection | QwtPicker::DragSelection, QwtPlotPicker::NoRubberBand, QwtPicker::AlwaysOn, plot->canvas());
d_picker->setTrackerPen(QColor(Qt::darkGreen));
To copy to clipboard, switch view to plain text mode
and my constructor is empty:
PlotPicker
::PlotPicker (int xAxis,
int yAxis,
int selectionFlags, RubberBand rubberBand, DisplayMode trackerMode,
QwtPlotCanvas* canvas
): QwtPlotPicker(xAxis, yAxis, selectionFlags, rubberBand, trackerMode, canvas
) {
}
PlotPicker ::PlotPicker (int xAxis, int yAxis, int selectionFlags, RubberBand rubberBand, DisplayMode trackerMode, QwtPlotCanvas* canvas)
: QwtPlotPicker(xAxis, yAxis, selectionFlags, rubberBand, trackerMode, canvas)
{
}
To copy to clipboard, switch view to plain text mode
and my trackerText is declared "protected" instead of "private", but that definitively does not make a difference (I checked that)
Bookmarks