|
2010-02-23
, 11:11
|
|
Posts: 85 |
Thanked: 65 times |
Joined on Jan 2010
@ Ireland
|
#3
|
Hi,
haven't used it by myself, but I think QProcess is what you are looking for.
Daniel
|
2010-02-23
, 11:13
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#4
|
Thanks Daniel,
I meant to update this thread today.
I tried system("espeak 'Hello shep'") and that seemed to work. I don't know how though!
Shep
The Following 2 Users Say Thank You to krk969 For This Useful Post: | ||
|
2010-02-23
, 11:29
|
|
Posts: 85 |
Thanked: 65 times |
Joined on Jan 2010
@ Ireland
|
#5
|
QProcess is far more advanced than the system() call.
You could make use of the various signals that QProcess generate and also fork a process etc.
If all you want to do is execute a script and wait till it finished you can use the C++ system() function and you should be fine.
|
2012-06-30
, 16:29
|
|
Posts: 528 |
Thanked: 345 times |
Joined on Aug 2010
@ MLB.AU
|
#6
|
I'd like to use espeak to announce things in my app, but I dunno how to go about calling it from QT?
I have looked through the QT APIs and I cannot see something that allows interaction with the command line, but I imagine I'm way wrong !
Any ideas?
Shep
- Hey! I also do other stuff Touchscreen apps for Windows and Android
- Currently developing a Diet Assistant/Weight Tracker for the N900