您的位置:首页 > 编程语言 > Qt开发

在QTMovieView上面添加视图

2012-09-21 16:02 399 查看
可以查看苹果官方提供的代码:https://developer.apple.com/library/mac/#samplecode/Movie_Overlay/Introduction/Intro.html

This sample shows how to overlay text & graphics and perform animation on an QTMovieView through a floating "overlay" window. This is accomplished by first creating a new window and adding subviews to this window. These subviews are used to draw the images
and perform the animation. The new overlay window is then added as a child window to the QTMovieView window with the NSWindowAbove ordering so it will be ordered on top of the movie window. Any subsequent drawing in the overlay window subviews will then draw
on top of the QTMovieView window, giving the overlay effect we desire.

*IMPORTANT*

While this technique is good for overlaying text & graphics on top of a QTMovieView, with Mac OS X 10.5 Leopard the recommended technique is to instead use a Core Animation layer-backed QTMovieView. For more information, see the Core Animation documentation.

Also, the following sample code is available:

Core Animation QuickTime Layer
http://developer.apple.com/samplecode/CoreAnimationQuickTimeLayer/index.html
MyMovieFilter
http://developer.apple.com/samplecode/MyMovieFilter/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: