--===============0551872530== Content-Type: multipart/related; type="multipart/alternative"; boundary="=-VgIR086EDFYdnC6z/Ytv" --=-VgIR086EDFYdnC6z/Ytv Content-Type: multipart/alternative; boundary="=-zBLYMgD6jiLzhHagRyLk" --=-zBLYMgD6jiLzhHagRyLk Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 : > > 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 --=-zBLYMgD6jiLzhHagRyLk Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit 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
--=-zBLYMgD6jiLzhHagRyLk-- --=-VgIR086EDFYdnC6z/Ytv Content-ID: <1212926266.22661.5.camel@localhost.localdomain> Content-Disposition: attachment; filename=stock_smiley-6.png Content-Type: image/png; name=stock_smiley-6.png Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJ TUUH1wgOER8RqU5d7gAAAwVJREFUOI19k11om3UUxn/vmzd5W5u0m65L/dpGYX50Id2o6+pEL8QL BRlMtAgbKtVR1DLGnCAOizfilZQOV9B6MaT1orCbMu0uhsK2dNXNdg0tc5o0to2aZGnTNs3X+/E/ XtQOacUHDjwX55yb5/lpbFDka0K6x9OJ6IfEdRoANF1PgQwrUV889RpT/97X1s30EL6VirfPMLcd 2f3kRz7/fU/ruq8BxMapxMlnLqnY9bOWa2UH60ze2dOOdffB0BCehy3v5Yf2HGt5MPypiX0LsX8D KoABqoTofjRvmNnx05VU/MLPSZNn2ttxARj7xtszP95ZEndJ3OIFUdYvIqoiomwRNy/ipEWVr4uV PS1O8YrEI8+WxgboAdAiX7HTVxeMthyeqhVrnMs/ukxMTgPCvuYmEJuJ6K+AsLfJpK3pEkZdFze/ fXnFXi2EDb3KOLn7QLcfZwbN2MVPN85zvOsEIJz5vBeA4+++DeJwpu9L2h5N4ZausDP8ij82fu6k dm3QN7v/pZs7sMfQfPvQvY+gVB7EQfPUglio0gjY8+g1L1L+63UUNWg1HUxe7JgzlOMENU+ApXjH xkT/Qx/edf6tH6AUQWM9CsW9TC/00/R4CNdRbK+vx3VdFpdy3FNdje3Y5HJLzM3NEKp/E03zAGBo Hk/atZI7wMvIyCiLOQhuD6LpWwgEAggudxaKZO5k+D2RYHziBqGjHuzyPLpOmsiA3rsQ73ZzM8/J gdZGAf53Wvc3SvZ2s6Smj7qRAXrXYgxsiTY/3187OXqMz84dRAjg9RqICK7rrl0qhcYq771xldAT HzP1ffeKvVoIrxVpQO9JXHuhVEi/L5lotWQTJ6S0/INUijEp5G/JYvo7ScW6JBOtknzyLYlfPVhc L5IBMOdTp1TsYquI1vLAY2fNcq6P4h/9oAr/EFONaTZi3v8Jf94eLmcSoxNJk1ObYFou0+fxbT2y a++rPv+2Nt0wgyAKp5wknx1Ts9HzlmstD9ZVbYBpE84anQKHUDQAoJPSYFgJm3D+G6F1h54BeAyM AAAAAElFTkSuQmCC --=-VgIR086EDFYdnC6z/Ytv Content-ID: <1212926155.22661.2.camel@localhost.localdomain> Content-Disposition: attachment; filename=stock_smiley-1.png Content-Type: image/png; name=stock_smiley-1.png Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJ TUUH1wgOER8RqU5d7gAAAwtJREFUOI1lk01oXGUYhZ/73Ts/sWPiT8YE2ti6SF00jDWBaBWLuhFB QgUNQsFdCair2pVSBV3YGkNWDVjcqKlIaG2sLf5EUBqTBkqjTFMi2Px2ojOTpJnMZHLnfvd+3+si VKR5V2dxOBx4z+Nw1419QZty3R5EdYmJmgEcpfIgF6zYT59+nan/+5074sYQ8XIQG/ASjYdbDxyP px58Rql4M0hIFMxQKf5sb149pY1eOdOQ4I193ej/AoaGcFt07PKufUc6dmY+ShBOI+FfQAB4ID5C CieeYWHy3SA/c/FaLsHB7m4MABNfxfpvTfb4YkpiNi+K1X+K2EDEhiKmIhIVxNauil55R6LNUZkZ e96fGKQfwBn7jN3xhqZsx8tT9aInUYlOTvSeYrlYoK/3fcRWOdk7wHJxiY8/eBZdPo/X8BZ/XHql HG5UM0olvaOtT7yXIprF8fYALmfPfcPwt5dANNgyZ8+PMPzdOJh/wOQx/ii7M6+mSHJU4ahDqfRz SqJ5cGIgNR5t3Uv7/gxifbDr7H0kxeNtOxB9A3Aw/jip9EHlCIc8G0VNKpZGdBGiHOI+xODnJ0FC xK6AKfDl6ZcgmkOiRcBg9QLJB1qwliYPAIkQKUM4DbYETt1WfSmDWQa7BraKNTXEBohoQADwHNct mGD+YSUKMXkc8cFJbhlsFbFrYFYRW8KaDazxQaUJ/XmUoqAEM1wufG/xdkK0xOTICW4v/YKuTmP0 AjbMEdYWWc3Pcv1KFmMquHWdVJYvW3EY3nrjvfdl27t+qpfKaW5X2slN9VEtLWEiDYDredxT38iu treJywB16Q/J/nikHG5UM1tDGlT9c1de9CN/XMK1T8TUrok1ayJWi9hAbLQqYXVUqn+/KUHpa5n5 7anNO0PyABbj9pi9+UOniNPR8tjxRLgxgvF/xeg5xAY4bhq37gDejhe4db2vVpwb/z2X4Ng2mNZr DLjx+w/v2f9aPNX4pIolW0AsoT9LZWXCLmTPaaPXzzQk74JpG84OPQJdWJoBUOQduGCFbTj/C8H3 uN+XWOgHAAAAAElFTkSuQmCC --=-VgIR086EDFYdnC6z/Ytv-- --===============0551872530== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0551872530==--