Yeah, but I mean the wid from the external application, not my own widget.
Just run xterm with "-into X" where X is the winId returned by the window you wish to embed xterm into.
I tried exactly this, but xterm opens in a separate window.
edit:
Here's some code:
edit2:Shell::Shell(QWidget *parent)
: QDockWidget(parent)
{
setObjectName("Shell");
setWindowTitle("Shell");
QWidget *widget=new QWidget(this);
setWidget(widget);
process=new QProcess(this);
process->start("xterm -into "+QString((int)widget->winId()));
widget->show();
}
I made a screenshot for you, so you can understand what I am trying to achieve:
Last edited by leenxkewl; 14th October 2010 at 16:15.
It fails because your QString "cast" fails. Look that there is no QString constructor taking a sole int as a parameter.
leenxkewl (14th October 2010)
Oh hehe, sorry fur bugging you. Anyways, isn't there a solution to implement any foreign window?
Last edited by leenxkewl; 14th October 2010 at 17:08.
Bookmarks