Click here to Skip to main content
15,557,928 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687713-Oct-22 12:13
Member 149687713-Oct-22 12:13 
GeneralRe: Connect to terminal native window - repost Pin
k50543-Oct-22 12:58
mvek50543-Oct-22 12:58 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687713-Oct-22 18:06
Member 149687713-Oct-22 18:06 
GeneralRe: Connect to terminal native window - repost Pin
Richard MacCutchan3-Oct-22 22:54
mveRichard MacCutchan3-Oct-22 22:54 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687714-Oct-22 4:43
Member 149687714-Oct-22 4:43 
QuestionRe: Connect to terminal native window - repost Pin
David Crow4-Oct-22 6:17
David Crow4-Oct-22 6:17 
AnswerRe: Connect to terminal native window - repost Pin
Member 149687714-Oct-22 8:03
Member 149687714-Oct-22 8:03 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687714-Oct-22 20:10
Member 149687714-Oct-22 20:10 
More I get into this the more confused I am .
The Qt QProcess starts external application...

Per Qt QProcess doc

Processes have two predefined output channels: The standard output channel (stdout) supplies regular console output, and the standard error channel (stderr) usually supplies the errors that are printed by the process. These channels represent two separate streams of data. You can toggle between them by calling setReadChannel(). QProcess emits readyRead() when data is available on the current read channel. It also emits readyReadStandardOutput() when new standard output data is available, and when new standard error data is available, readyReadStandardError() is emitted. Instead of calling read(), readLine(), or getChar(), you can explicitly read all data from either of the two channels by calling readAllStandardOutput() or readAllStandardError().



I am decoding the above as QProcess can communicate with the started external application using standard stdio/stdout.

Now the application started is "xterm" which executes "bluetoothctl".

I am redirecting the result of the "bluetoothctl" output to temporary file...
I have "xterm" itself optioned for logging and have the log file - it has SAME contents and format as
my temporary "bluetoothctl" file .

I have added "connect " to my code to capture any of this "printing" , but the SIGNAL ( as described in the doc snippet ) never arrives - hence neither xterm logging process nor bluetoothctl temp file are stdin/stdout.

My question - what processes / prints the xterm log and the bluetoothctl file?

Obviously these (prints) are not standard stdin/stdout.

I realize this is no longer C code issue, actually it never was pure C code issue ,
but still getting no help from QT forum.

PS xterm has "-C" - console option , but using it did not resolve the issue.
GeneralRe: Connect to terminal native window - repost Pin
k50545-Oct-22 5:32
mvek50545-Oct-22 5:32 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687715-Oct-22 10:37
Member 149687715-Oct-22 10:37 
GeneralRe: Connect to terminal native window - repost Pin
Richard MacCutchan5-Oct-22 23:47
mveRichard MacCutchan5-Oct-22 23:47 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687716-Oct-22 5:42
Member 149687716-Oct-22 5:42 
GeneralRe: Connect to terminal native window - repost Pin
Richard MacCutchan6-Oct-22 5:56
mveRichard MacCutchan6-Oct-22 5:56 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687717-Oct-22 9:57
Member 149687717-Oct-22 9:57 
GeneralRe: Connect to terminal native window - repost Pin
Richard MacCutchan7-Oct-22 10:25
mveRichard MacCutchan7-Oct-22 10:25 
Questionx86 Assembly Language Pin
Member 1578377430-Sep-22 0:51
Member 1578377430-Sep-22 0:51 
AnswerRe: x86 Assembly Language Pin
Richard Deeming30-Sep-22 1:14
mveRichard Deeming30-Sep-22 1:14 
Questiontype trait is_base_of compiles here but not there Pin
BernardIE531728-Sep-22 3:33
BernardIE531728-Sep-22 3:33 
QuestionRe: type trait is_base_of compiles here but not there Pin
jeron128-Sep-22 8:11
jeron128-Sep-22 8:11 
AnswerRe: type trait is_base_of compiles here but not there Pin
BernardIE531728-Sep-22 9:15
BernardIE531728-Sep-22 9:15 
QuestionDecimal point in floating point number in CSV under European locale Pin
Shao Voon Wong26-Sep-22 19:50
mvaShao Voon Wong26-Sep-22 19:50 
AnswerRe: Decimal point in floating point number in CSV under European locale Pin
Peter_in_278026-Sep-22 20:33
professionalPeter_in_278026-Sep-22 20:33 
GeneralRe: Decimal point in floating point number in CSV under European locale Pin
Shao Voon Wong26-Sep-22 20:39
mvaShao Voon Wong26-Sep-22 20:39 
GeneralRe: Decimal point in floating point number in CSV under European locale Pin
Peter_in_278026-Sep-22 21:36
professionalPeter_in_278026-Sep-22 21:36 
Question.hex file converter Pin
Muhammad Adnan 202224-Sep-22 22:18
Muhammad Adnan 202224-Sep-22 22:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.