Hello all,

I am working on a wizard.
I used to have a custom button to launch a process but it is not the solution my users want.
They want to have only one button, the "Next >" one.

So now, I would like to launch a process when my user selects the next button.
But when I put the code in the nextId() function, the process is launched twice.
I try to avoid that by testing the state of the process, in vain.
Qt Code:
  1. int InstallDriverPage::nextId() const
  2. {
  3. QProcess *myProcess = new QProcess();
  4. if( myProcess->state() == QProcess::NotRunning ) // test if the process is already running or is starting.
  5. {
  6. myProcess->startDetached(QString("installdriver.exe"));
  7. }
  8. return ONmoveConverter::Page_ONmoveDetection;
  9. }
To copy to clipboard, switch view to plain text mode 

FYI : When I press the Next button on page Z, I go to the next page Z+1, not Z+2.

Does someone know how I can do that?
Thank you in advance for your support.

Zidoune06