[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: A newbie question about QXEmbed
From:       Otvio Souza <aragao.otavio () gmail ! com>
Date:       2008-06-08 11:57:46
Message-ID: 1212926266.22661.6.camel () localhost ! localdomain
[Download RAW message or body]

[Attachment #2 (multipart/related)]

[Attachment #4 (multipart/alternative)]


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

[Attachment #7 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3">
</HEAD>
<BODY>
You didn't forget the QProcess::start(), you did it at if ( !mp-&gt;start() ) <IMG \
SRC="cid:1212926155.22661.2.camel@localhost.localdomain" ALIGN="middle" ALT=":)" \
BORDER="0"><BR> <BR>
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 <IMG \
SRC="cid:1212926155.22661.2.camel@localhost.localdomain" ALIGN="middle" ALT=":)" \
BORDER="0"><BR> <BR>
If this doesn't work, try to qDebug the QXEmbed winId, and do mplayer by hand, copy \
and paste with the command <IMG \
SRC="cid:1212926266.22661.5.camel@localhost.localdomain" ALIGN="middle" ALT=":D" \
BORDER="0"><BR> <BR>
And now, try to see if mplayer is running<BR>
<BR>
Em S&#225;b, 2008-06-07 &#224;s 21:39 +0200, koos vriezen escreveu:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">2008/6/7 Robert Wood &lt;<A \
HREF="mailto:robert.wood@apostrophe.co.uk">robert.wood@apostrophe.co.uk</A>&gt;:</FONT>
 <FONT COLOR="#000000">&gt; I'm trying to develop a little open source application to \
set-up and use</FONT> <FONT COLOR="#000000">&gt; Hauppauge boxes on Linux. I'm using \
KDevelop and have got to the stage</FONT> <FONT COLOR="#000000">&gt; where I can \
set-up the box and alter its settings just fine. However,</FONT> <FONT \
COLOR="#000000">&gt; what I would now like to do is embed a small mplayer Window \
within my</FONT> <FONT COLOR="#000000">&gt; application.</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; It looks like QXEmbed is what I need to use, but no matter \
what I have</FONT> <FONT COLOR="#000000">&gt; tried I cannot get it to work.</FONT>

<FONT COLOR="#000000">mplayer -wid option is for outputting video in an existing \
window,</FONT> <FONT COLOR="#000000">where the X Window is passed with the wid \
option.</FONT> <FONT COLOR="#000000">You assume however that mplayer creates a window \
that then needs to be</FONT> <FONT COLOR="#000000">embedded. Which is wrong.</FONT>

<FONT COLOR="#000000">Br.</FONT>
<FONT COLOR="#000000">Koos</FONT>
<FONT COLOR="#000000"> </FONT>
<FONT COLOR="#000000">&gt;&gt; Visit <A \
HREF="http://mail.kde.org/mailman/listinfo/kde-devel#unsub">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</A> \
to unsubscribe &lt;&lt;</FONT> </PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
--<BR>
Ot&#225;vio Souza<BR>
<BLOCKQUOTE>
    * MSLC-SE<BR>
    * Representante Fedora-SE<BR>
    * Criador do KinuX Linux<BR>
    * Promotor KDE<BR>
    * lunatiKo
</BLOCKQUOTE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>


["stock_smiley-6.png" (stock_smiley-6.png)]

PNG


IHDRabKGD \
tIMEN]IDAT8}]hu7y[KFa~t!ݨD/L*Q2Ɯ \
                7╔Wz12. tv
-s4di6?^i<眛ilPkBӉu4]O+Q_<S0G>}O뺯Ʃg.keLӎu-ky0}*~4oӕT \
Igq3?YwIQ/""l7/E=-N#ϖ"_Wk?LLN \
&诀ɤF]7}y^- 8@gO7s 
pKMᖮ3?6~vm7;|н \
TAԂX5/Ru5h5L^35OxDCu Ac= \
ŽL/xQlu]rS]rKM`hOڵ;(9n[.wdd=`|<N \
Ȁ޻vs3ɁFwZ7Jvzbl6?_;9zD]**q3}Zi@I\{TH/hd'T1)ob;Iź$|-_=X\/0STbcgr \
 Si6b	.gIS`Z.m=k>60 
$Sk-UmiP4 `X	puxIENDB`


["stock_smiley-1.png" (stock_smiley-1.png)]

PNG


IHDRabKGD \
tIMEN]IDAT8eMh\e;?cOغH]45hAB B]	ڕR]CV
XܨHhm-DPJLS"v3dr~~"TyWgq8xp׍}ArDu \
O~;r[|Fx3HHP)lo^=^9Ӑ}p[t}G:vf>JN#_@x >B \
'aa ?sZ.n_oMbJb6/@Ć""֮^yGQ{ޟlS'QNNbX \
}V9;rq?x]>\znT3J%O".g}@42gϏ081(3HrTCsJypb \
5mKb}}$m;}p08A<EM*Ft>'ABĮ) CE`Z&)C8 \
NV})Y55h@-`a% 1yInlk`V[ 
A	y 3\.|ovB	n/Nc6YrJc*uT/[qzeۻ~inWMQ--a"
ySȮuxnT3[CTsW^#\ \
OԮ5k"V@l*auT)Ak;CCD198nގuV=6kZ<%[@,?Kee \
.di4$i=]XP`m8ߗXIENDB`



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic