Hi all. I have a slot that, runs an external windows application like this.
//Header
//Header
QProcess *runEx;
To copy to clipboard, switch view to plain text mode
//In class constructor
...
...
//Process starter slot
void procTests::runCustomWin()
{
runEx->start("test.exe");
runEx->waitForStarted();
}
//Slot for terminate
void procTests::stopCustomWin()
{
runEx->terminate();
}
//Deconstructor
procTests::~procTests()
{
delete runEx;
}
//In class constructor
...
runEx = new QProcess(this);
...
//Process starter slot
void procTests::runCustomWin()
{
runEx->start("test.exe");
runEx->waitForStarted();
}
//Slot for terminate
void procTests::stopCustomWin()
{
runEx->terminate();
}
//Deconstructor
procTests::~procTests()
{
delete runEx;
}
To copy to clipboard, switch view to plain text mode
"test.exe" has a message dialog. When I send a signal for closing(QProcess terminate), popup works and ask user for really wants exit the application, or not.
For exit application, user must answer that. I want to automate this process, but i cant figured it out ?
How can I close this popup immediatelly with legal way (without force kill) and terminate process ?
Best regards.
Bookmarks