Click here to Skip to main content
15,613,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionList assertation failure Pin
ForNow2-Oct-22 15:50
ForNow2-Oct-22 15:50 
AnswerRe: List assertation failure Pin
Graham Breach2-Oct-22 21:06
Graham Breach2-Oct-22 21:06 
GeneralRe: List assertation failure Pin
ForNow2-Oct-22 21:22
ForNow2-Oct-22 21:22 
GeneralRe: List assertation failure Pin
Graham Breach2-Oct-22 21:46
Graham Breach2-Oct-22 21:46 
GeneralRe: List assertation failure Pin
ForNow3-Oct-22 8:49
ForNow3-Oct-22 8:49 
AnswerRe: List assertation failure Pin
CPallini2-Oct-22 21:08
mveCPallini2-Oct-22 21:08 
GeneralRe: List assertation failure Pin
ForNow2-Oct-22 22:17
ForNow2-Oct-22 22:17 
QuestionConnect to terminal native window - repost Pin
Member 149687712-Oct-22 9:45
Member 149687712-Oct-22 9:45 
Forgive me to be so bold - but I just cannot believe that in versatile forum like
this there is nobody who can at lest give me some idea how to resolve this.
It seems to be a problem that everybody wants SINGLE system problem
- that seldom works in real life.
As the title suggest - I need to connect Qt generated object / window to Linux "terminal"
(operating system ) native window.
I can highlight ( Using Qt) the text in the native window (!)
but Qt gives me no indication it did that.



PLEASE - NO PASSING THE BUCK TO QT FORUM - THEY HAVE NO IDEA HOW TO PROCEED - IT IS NOT Qt ISSUE IN THEIR ASSESSMENT -HENCE out OF THEIR narrow minded LEAGUE.

ps i WILL REMOVE THIS , AND MY SIMILAR POSTS, IF i DO NOT GET REASONABLE REPLY , JUST TO SAVE SPACE HERE.

Edited / addendum

I am still looking for somebody who is willing to help me instead of just posting text.
If it bothers you that my post is not specifically C/C++ code , please ignore it .
If it bothers you that my post is too complex , please ignore it also.
If it bothers you that my post is poorly written - read how to post / answer questions.

Is short - write something helpful and constructive.


I am asking for real help to SOLVE this.

The main issue is - QProcess runs external "terminal" application - I have tried several with same results - such external application builds / create "window" , which is by C code attached to object created by QtCreator. Window created by Qt displays data retrieved from the external app ( terminal) , I am interested in text only so far.

Such data ( text ) can be highlighted by using mouse - as any QT created text,

However, this highlighted text is NOT DETECTED by QT - because of what ?

And that is the main (IMHO) question which is so far not answered...

How does terminal created window "connect" to Qt ? - that is the question.


Original post

This simple command , entered in Linux "terminal" application results in expected output from "Bluetoothctl" .

qterminal -e bluetoothctl

When this command is implemented in C++ code , an new "native window" is displayed above current application windows.

Similar code can be implemented in C++ for "xterm" or other terminal emulation.

My question is - how do I acccess this "native window " in my C++ application ?

I can move the "native window" into desired position using winId() but cannot access any data displayed in the native window.






















Thanks for reply. I am actually looking for "discussion forum" . I am running out of ideas how to fix my problem.
Yes , I did try qterminal - it has no option to run command with options - so I ended up with xterm.

It works OK, but I cannot figure out how to FULLY integrate it with my application.
I am able to display the command output in my app "window" but it is NOT really my app window - some folks call it "xterm native window ".
So I can display it - it is "inside my other window" , I can move it , using my app "wrapper window", but I cannot process anything in it.

I am actually hoping that somebody with good grasp of "windows hierarchy" can shed some light on this.

In not so techie terms - how do I process data in xterm native window ?

I will take a look at xterm man again, maybe the answer is there.
AnswerRe: Connect to terminal native window - repost Pin
Dave Kreskowiak2-Oct-22 16:49
mveDave Kreskowiak2-Oct-22 16:49 
AnswerRe: Connect to terminal native window - repost Pin
Richard MacCutchan2-Oct-22 22:34
mveRichard MacCutchan2-Oct-22 22:34 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687713-Oct-22 7:50
Member 149687713-Oct-22 7:50 
GeneralRe: Connect to terminal native window - repost Pin
Richard MacCutchan3-Oct-22 9:15
mveRichard MacCutchan3-Oct-22 9:15 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687713-Oct-22 11:13
Member 149687713-Oct-22 11:13 
GeneralRe: Connect to terminal native window - repost Pin
k50543-Oct-22 11:58
mvek50543-Oct-22 11:58 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687713-Oct-22 17:06
Member 149687713-Oct-22 17:06 
GeneralRe: Connect to terminal native window - repost Pin
Richard MacCutchan3-Oct-22 21:54
mveRichard MacCutchan3-Oct-22 21:54 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687714-Oct-22 3:43
Member 149687714-Oct-22 3:43 
QuestionRe: Connect to terminal native window - repost Pin
David Crow4-Oct-22 5:17
David Crow4-Oct-22 5:17 
AnswerRe: Connect to terminal native window - repost Pin
Member 149687714-Oct-22 7:03
Member 149687714-Oct-22 7:03 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687714-Oct-22 19:10
Member 149687714-Oct-22 19:10 
GeneralRe: Connect to terminal native window - repost Pin
k50545-Oct-22 4:32
mvek50545-Oct-22 4:32 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687715-Oct-22 9:37
Member 149687715-Oct-22 9:37 
GeneralRe: Connect to terminal native window - repost Pin
Richard MacCutchan5-Oct-22 22:47
mveRichard MacCutchan5-Oct-22 22:47 
GeneralRe: Connect to terminal native window - repost Pin
Member 149687716-Oct-22 4:42
Member 149687716-Oct-22 4:42 
GeneralRe: Connect to terminal native window - repost Pin
Richard MacCutchan6-Oct-22 4:56
mveRichard MacCutchan6-Oct-22 4:56 

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.