Hi,

In my Dialogclass I open a file

Qt Code:
  1. if(file.open(QIODevice::ReadOnly | QIODevice::Text)){
  2. ui->FileEdit->setText(filepath);
  3. QByteArray firstlineArray = file.readLine();
  4. ui->UpdateProgressBar->setRange(0,(file.size()-firstlineArray.size()));
  5. firstlineArray.chop(1);
  6. devicetypeFromFile = firstlineArray.toInt();
  7. enableUpdateButton(true);
  8. }
To copy to clipboard, switch view to plain text mode 

Now I want to have access to this file in my WorkerThread Class, because I need to read some lines from this file (it's a file with many hex-lines). The Dialog starts with a click on a Button the WorkerThread.
What is the best way to get the file to my Worker Thread?