Hello all,

I have a new little trouble with QWT
usually when I want to make a curve i do this:

I put an attribute like this:
Qt Code:
  1. QwtPlotCurve myCurve;
To copy to clipboard, switch view to plain text mode 

in the constructor then I do:
Qt Code:
  1. myCurve.attach (myPlot1)
To copy to clipboard, switch view to plain text mode 

then something like
Qt Code:
  1. myCurve.setStyle (QwtPlotCurve:: Dots)
To copy to clipboard, switch view to plain text mode 

now I wish have a vector of curve and do the same thing

I have done in the attributes:
Qt Code:
  1. std:: vector <* QwtPlotCurve> mycurve;
To copy to clipboard, switch view to plain text mode 

then I do in the constructor:
Qt Code:
  1. int Nb=8;
  2. int number=2;
  3. for (int k = 0 k <number; + + k)
  4. {
  5. mycurve.push_back (new QwtPlotCurve ());
  6. mycurve [1 + k * Nb] -> attached (myPlot1);
  7. mycurve [1 + k * Nb] -> setStyle (QwtPlotCurve:: Dots)
  8. mycurve [1 + k * Nb] -> setPen (QPen (Qt:: blue, 4));
  9. }
To copy to clipboard, switch view to plain text mode 

the problem is that I get an error:

mycurve Have No member "attached"

it's weird because in the first case it works with a curve too here it's just a vector of curve ?