Solved How can I send the command to console?
-
HI, I'm using Qt5.5 on my computer.
I'm wanna send this two commands to my consolecd /run/media/sda1 sync
I do not know how to do it.
Please help! -
@victor-wang you can use
QString cmd = "sync";
system(cmd);Regards
Manu -
-
@Manohar_SL
I got an error when compiling.
The error is hereThis is my code here
It cannot convert QString to char, what should i do ?
-
@VRonin
Thank you for your information.
I have solved my problem!
Thank you so much!
@Manohar_SL
Thank you i have solved the problem in the other way.