PDA

View Full Version : Need help with X11EmbedContainer



titoaii
29th March 2010, 02:22
Hello everyone!

I'm developing a program using qt4 and I have a little problem now.
I'm trying to include gedit into a QWorkspace and this is my code:


QX11EmbedContainer* container = new QX11EmbedContainer(this);
QProcess *proc = new QProcess(container);
ws->addWindow(container);
container->show();
proc->start("gedit");


The execution of this code, opens gedit, but it isn't embeded into the QWorkspace.

Does anybody know how to make it appear inside the workspace?

Thank you in advance.

Alberto