run system() command through qt application
Hi,
I cross compiled my qt application and it runs well on my arm development platform. What I want is to run a system() command when a button is pressed.I did something like follow in button’s clicked() function.
- const char* command2;
- command2 =command.toLocal8Bit().data();
- system(command2);
this worked perfecly on my pc. but on target it didnt work.
I ran my application with ./my_app -qws command. can anyone help me
thank you.
7 replies
You might use QProcess [doc.qt.nokia.com] instead.
Based on my personal experiences, both system() and QProcess should work on embedded devices running QWS, so the -qws option doesn’t seem to be the problem (at least not the real problem). Perhaps some information about you devices may help, too.
On the other hand, if you are only interested in copying files, you can consider using QFile’s copy function [doc.qt.nokia.com] instead. It should be pretty easy to use.
You must log in to post a reply. Not a member yet? Register here!




