You didn't forget the QProcess::start(), you did it at if ( !mp->start() ) :)

Try to show up the window first, than you start the mplayer process, you can try to start another app, like kwrite ou anything else :)

If this doesn't work, try to qDebug the QXEmbed winId, and do mplayer by hand, copy and paste with the command :D

And now, try to see if mplayer is running

Em Sáb, 2008-06-07 às 21:39 +0200, koos vriezen escreveu:
2008/6/7 Robert Wood <robert.wood@apostrophe.co.uk>:
> I'm trying to develop a little open source application to set-up and use
> Hauppauge boxes on Linux. I'm using KDevelop and have got to the stage
> where I can set-up the box and alter its settings just fine. However,
> what I would now like to do is embed a small mplayer Window within my
> application.
>
> It looks like QXEmbed is what I need to use, but no matter what I have
> tried I cannot get it to work.

mplayer -wid option is for outputting video in an existing window,
where the X Window is passed with the wid option.
You assume however that mplayer creates a window that then needs to be
embedded. Which is wrong.

Br.
Koos
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
--
Otávio Souza
* MSLC-SE
* Representante Fedora-SE
* Criador do KinuX Linux
* Promotor KDE
* lunatiKo