Qt Creator stdin for command line with Deploy to Remote Linux Host
-
I am using the Remote Deploy feature of Qt Creator to launch my simple command line application on an embedded Linux target board. My test application is extremely simple and asks the user to print his/her name. It crosscompiles, transfers to the board, and launches and the 'Application Output' window near the bottom of Qt Creator shows the 'Type your name:' prompt, but I cannot type anywhere and provide stdin to the application running remotely through Qt Creator.
How can I accomplish this within Qt Creator? Can I somehow manipulate the deploy 'arguments' to connect a device to provide stdin to my command line app? I also cannot launch the application remotely by checking the 'run in terminal' checkbox under Projects > Run Configuration since it is not available for remote deployments.
Code:
@
#include <iostream>using namespace std;
int main() {
cout << "Enter a number: ";
int nb;
cin>>nb;
cout << "Here is your number:" << nb << endl;
return 0;
}
@
Application Output in Qt Creator:@Killing remote process(es)...
Starting remote process ...
Remote process started.
Enter a number: d@ -
I think the application output window does not even accept input at all. So far I always tested this with embedded devices that come with their own input methods... I doubt anybody ever wanted stdin redirection so far.
Please consider to "file a bug report":http://bugreports.qt.nokia.com/ .