hi everyone,
in my program, i need to call an external command ("dmtxread") to decode a 2D barcode. and display the result.
i can achieve above what i need by using system()
Qt Code:
system("dmtxread /home/cz/Webcam/abc.jpg >> /home/cz/Webcam/a.txt");To copy to clipboard, switch view to plain text mode
as you can see, i sent result into a text file (a.txt). after that, i used QFile read the content of a.txt as a string. then, display this string.
i am just wondering is there any other way i can save the result to a buffer, or a string, directly, instead of creating a file to store the result, and read the content out.
can anyone give me a hint or suggestion, please?
thank in advance.
Bookmarks