Someone has or could provide a working example of how to create a thread with QwtPlot ?

I have a working program without QThread, but when I try to introduce the Thread I receive the following message:
QObject::moveToThread: Cannot move objects with a parent

I'm kind of confusing of how to initialize this plot without any parameters in the constructor.

Thanks in advanced.



Bellow

Qt Code:
  1. Plot::Plot(QWidget *parent): QwtPlot(parent),
  2. canvas() {
  3. curve = new QwtPlotCurve;
  4. curve->setPen(QPen(Qt::lightGray));
  5. curve->attach(this);
  6. // Create the Canvas
  7. // Make a grid
  8. // Create a Picker
  9. ...
  10. }
To copy to clipboard, switch view to plain text mode 

And in the mainWindow

Qt Code:
  1. void MainWindow::on_actionAudio_Signal_triggered() {
  2. QString filename = QFileDialog::getOpenFileName(this, tr("Open Audio"), "", tr("Audio Files (*.wav *.3gp *.mp4)"));
  3.  
  4. DataSamples(filename);
  5.  
  6. QThread* thread = new QThread;
  7. ui->WavePlotL->moveToThread(thread);
  8. ui->WavePlotR->moveToThread(thread);
  9.  
  10. connect(this->thread(),SIGNAL(started()),ui->WavePlotL,SLOT(SetData(DataSamples(left);
  11. connect(ui->WavePlotL,SIGNAL(finished()), this->thread(),SLOT(quit()));
  12. connect(ui->WavePlotL,SIGNAL(finished()), ui->WavePlotL,SLOT(deleteLater()));
  13. connect(this->thread(),SIGNAL(finished()), this->thread(),SLOT(deleteLater()));
  14.  
  15. connect(this->thread(),SIGNAL(started()) , ui->WavePlotR,SLOT(SetData(DataSamples(right));
  16. connect(ui->WavePlotR,SIGNAL(finished()), this->thread(),SLOT(quit()));
  17. connect(ui->WavePlotR,SIGNAL(finished()), ui->WavePlotR,SLOT(deleteLater()));
  18. connect(this->thread(),SIGNAL(finished()), this->thread(),SLOT(deleteLater()));
  19.  
  20. thread->start();
To copy to clipboard, switch view to plain text mode