Re: Using QProcess..........
We'd have to see the code you used to open the page.
3 Attachment(s)
Re: Using QProcess..........
hi
i'm sending the code............
Re: Using QProcess..........
Code:
void keyclass::enter()
{
QProcess process
(QString("/home/kdeprograms/konqueror/konqueror3-embedded-0.2-20060121/konq-embed/src/konqueror"));
process.addArgument("http://www.yahoo.com");
process.start();
}
You create the process on the stack. QProcess::start() doesn't block the flow until the process exits but instead just schedules its start and continues the program. At that time the function returns and the process gets destroyed before it even had a chance to start. To avoid it, you have to create the process on heap.
Re: Using QProcess..........
hi....
thanks for the reply. can you say me how create the process on a heap...?
Re: Using QProcess..........
Re: Using QProcess..........
hi...
thank you for the reply. i'l try that and will let you know..
Re: Using QProcess..........
hi....
thank you. i finally got it working.....