标题:Qt::WA_PaintOnScreen和Qt::WA_OpaquePaintEvent有什么区别??(视频输出)
作者:knight8267
日期:2009-09-01 18:14
内容:
Qt::WA_PaintOnScreen 和Qt::WA_OpaquePaintEvent有什么区别??
我分别试过这两个,没什么变化.
我在开发板上跑Qt的时候,播放画面跑到Qt外面了。但在PC机上是正常的
难道如下方式实现不行?
videoWindow = new Widget(this);
QProcess *mplayerProcess ;
videoWindow->setAttribute(Qt::WA_PaintOnScreen);
...
args
#1 [knight8267 09-02 13:29]
如果mplayer无法嵌入在Qt界面中,还有没有办法实现播放器的窗口能够覆盖Qt窗口的指定区域,这样看起来就像嵌在Qt里的。
请路过的朋友提供些建议。谢谢
#2 [knight8267 09-02 13:34]
具体的就是:
mplayer在屏幕上的位置怎么改变?Qt在屏幕上的位置如何指定?
参数:
/zhq/bin # ./mplayer -help
MPlayer 1.0rc2-3.4.1 (C) 2000-2007 MPlayer Team
CPU: ARM
Usage: mplayer filename
Basic options: (complete list in the man page)
-vo select video output driver ('-vo help' for a list)
-ao select audio output driver ('-ao help' for a list)
-ss seek to given (seconds or hh:mm:ss) position
-nosound do not play sound
-fsfullscreen playback (or -vm, -zoom, details in the man page)
-x -y set display resolution (for use with -vm or -zoom)
-sub specify subtitle file to use (also see -subfps, -subdelay)
-playlist specify playlist file
-vid x -aid yselect video (x) and audio (y) stream to play
-fps x -srate ychange video (x fps) and audio (y Hz) rate
-pp enable postprocessing filter (details in the man page)
-framedrop enable frame dropping (for slow machines)
Basic keys: (complete list in the man page, also check input.conf)
seek backward/forward 10 seconds
down or up seek backward/forward1 minute
pgdown or pgup seek backward/forward 10 minutes
< or > step backward/forward in playlist
p or SPACE pause movie (press any key to continue)
q or E ..
#3 目前使用假嵌入的方法暂时解决 [knight8267 09-03 10:08]
目前使用假嵌入的方法暂时解决了,就是修改mplayer源代码里的x 和y 的坐标值,让图像数据输出到屏幕的指定区域,然后在让Qt界面调到合适的位置。
#4 [lanmanck 10-24 13:38]
我在pc机上试过,没试过arm的
#5 [xiangliuweb 11-27 15:20]
用这个可以实现:QX11EmbedContainer