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.
int InstallDriverPage::nextId() const
{
if( myProcess
->state
() == QProcess::NotRunning ) // test if the process is already running or is starting. {
myProcess
->startDetached
(QString("installdriver.exe"));
}
return ONmoveConverter::Page_ONmoveDetection;
}
int InstallDriverPage::nextId() const
{
QProcess *myProcess = new QProcess();
if( myProcess->state() == QProcess::NotRunning ) // test if the process is already running or is starting.
{
myProcess->startDetached(QString("installdriver.exe"));
}
return ONmoveConverter::Page_ONmoveDetection;
}
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
Bookmarks