thanks to all contributions received from this forum.
The att6ached code is being posted here because
it is C++ code
and QT forum did not respond for over two weeks
It is posted to seek a solution, not to receive bunch of social noise.
If you have no knowledge of QT , PLEASE , keep it to yourself ,
no need to advertise it here .
executes qterminal with -e option thus executing
After many trials, many RTFM and asking Mrs Google
I am unable to pass an optional argument to "bluetoothctl",
for example "help".
I can manually input to the resulting "window", however,
I cannot "write " to it using code.
I suspect that my "write " code is accessing QProcess , not the qterminal...
I am asking for help to solve this... please reply with solutions,
I would greatly appreciate that.
processTERMINAL = new QProcess();
QString exec = "qterminal";
//params = QStringList() << "qterminal " << command;
//params = QStringList() << "qterminal " << " -e" << " bluetoothctl "; // command;
// no go QStringList params = QStringList() << "qterminal" << "-e" << "bluetoothctl" <<"help\n";
QStringList params = QStringList() << "qterminal" << "-e" << "bluetoothctl" ; // help\n";
qDebug() << " processTERMINAL->waitForStarted() OK";
qDebug() << processTERMINAL->readAllStandardError();
qDebug() << processTERMINAL->readAllStandardOutput();
modified 5-Sep-22 13:43pm.