PDA

View Full Version : Re: Embed an external application to the widget



boss_bhat
14th June 2006, 15:11
Hi all,
I want to embed real player into my application on Linux. Here is the code I have written,
but It doesnt work, can some body explain how to do it.

#include <QX11EmbedWidget>
#include <QtGui>
#include <QApplication>

int main(int argc,char *argv[])
{
QApplication app(argc, argv);

if (app.argc() != 2) {
// Error - expected window id as argument
qDebug () << "Err cant get the realplayer";
return 1;
}

QX11EmbedWidget widget;
widget.embedInto((long)"realplayer");
widget.show();

return app.exec();

}


Thanks in advance,
Boss

jacek
14th June 2006, 15:36
I think you should rather use QX11EmbedContainer.