Qt5 5.70
Qt Creator 4.1.0

Hello,

I've got a modal QDialog on top of a QMainwindow.
I start a mainwindow QProcess from the QDialog, this seems to work.
I'd like to get the value from the QMainwindow/QProcess to show on on the QDialog QProgressBar.
So far, no luck.
I'm obviously missing sommething and would appreciate some help.
Thanks in advance.

Regards
Qt Code:
  1. mainwinndow .cpp
  2. void MainWindow::readyReadStandardOutput4() //slot
  3. {
  4. QString temp = process->readAllStandardOutput();
  5. outputList = temp.split("per");
  6.  
  7. qDebug() << outputList.at(0).toInt();
  8. emit progressUpdate(outputList.at(0).toInt());
  9. }
  10.  
  11. mainwinndow .hpp
  12. signals:
  13. void progressUpdate(int);
  14.  
  15. QDebug output:
  16. 1
  17. 2
  18. ...
  19. ...
  20. 99
  21. 100
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. noobsForm .cpp
  2. QObject::connect(&mainwindow, SIGNAL(progressUpdate(int)),
  3. this, SLOT(updateProgress(int)));
  4.  
  5. void noobsForm::updateProgress(int value) //slot
  6. {
  7. ui->progressBar->setValue(value);
  8. qDebug() << "value " << value;
  9. }
  10.  
  11. noobsForm .hpp
  12. public slots:
  13. void updateProgress(int);
To copy to clipboard, switch view to plain text mode