cannot access any QwtPlotCurve instanz
I always get the following error
Quote:
1>QCurvePlot.cpp
1>e:\Daten\Dev\SVN\Laserdynamics\QLaserDynamic\inc lude\qwt\qwt_plot_curve.h(214) : error C2248: "QwtPlotItem::QwtPlotItem": Kein Zugriff auf private Member, dessen Deklaration in der QwtPlotItem-Klasse erfolgte.
1> e:\daten\dev\svn\laserdynamics\qlaserdynamic\inclu de\qwt\qwt_plot_item.h(130): Siehe Deklaration von 'QwtPlotItem::QwtPlotItem'
1> e:\daten\dev\svn\laserdynamics\qlaserdynamic\inclu de\qwt\qwt_plot_item.h(31): Siehe Deklaration von 'QwtPlotItem'
1> Diese Diagnose trat in der vom Compiler generierten Funktion "QwtPlotCurve::QwtPlotCurve(const QwtPlotCurve &)" auf.
If I access/create an new curve using:
Code:
public:
vector<QwtPlotCurve> Curve;
void QCurvePlot::addCurve()
{
Curve.push_back(curve);
}
Re: cannot access any QwtPlotCurve instanz
Please don't crosspost.
Uwe
Re: cannot access any QwtPlotCurve instanz
Since this is a crosspost (I know one should not...) here the answer from the mailinglist of qwt from Rainer Thaden:
Quote:
Look at the bottom of
http://qwt.sourceforge.net/qwt__plot...8h-source.html
You'll find
private:
// Disabled copy constructor and operator=
QwtPlotItem( const QwtPlotItem & );
QwtPlotItem &operator=( const QwtPlotItem & );
QwtPlotItem is a base class of QwtPlotCurve and doesn't allow to be copied.
Your vector uses copies of the curve. So, you could store pointers of
QwtPlotCurves inside your vector.
vector<QwtPlotCurve*> Curve;
Matthias