在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/
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/
相关文章推荐
- QTMovieView overlay - 在播放窗口上面添加控件
- iOS添加一个view到所有视图的上面
- 一个SDI程序基于CFormView视。上面放一个CStatic控件,给视图添加双击消息,运行程序后,双击视图,会有弹出消息响应。 但是双击CStatic类控件,却没有响应
- Mac QTMovieView添加划入窗口
- UIScrollView中添加UIScrollView作为子视图
- TabLayout两种添加tab方式,结合ViewPager+Fragment实现常见界面视图
- 视图控制器上添加另一个控制器的View
- QtCreator QTableView用法大全,隐藏列,添加关系表,设置列宽,设置显示列名(持续添加)
- AX视图View中添加静态方法
- 对话框中添加视图方法- CScrollView
- tableView的使用(二)当前tableView视图中添加一行cell
- Android——添加子视图(addview)
- android视图学习---Android中将布局文件/View添加至窗口过程分析 ---- 从setContentView()谈起
- 转载:QT图形视图框架(The Graphics View Framework)
- Qt之QTableView添加复选框(QAbstractTableModel)
- 在一个Activity里面的TextView上面添加网页链接,启动后到另一个Activity里面!
- Qt5图形视图框架的“俄罗斯方块”(使用了QGraphicsView)
- Qt Graphics View FrameWork图形视图框架
- Qt之QAbstractItemView视图项拖拽(一)
- CollctionView添加头部视图,不是sectionHeader