简体   繁体   English

如何移动QTMovie的光标?

[英]How to move the cursor of a QTMovie?

I have an array of objects that have QTTime structs as attributes. 我有一个具有QTTime结构作为属性的对象数组。 The objects are in an NSArrayController which is bound to an NSTableView. 这些对象位于绑定到NSTableView的NSArrayController中。 I have a QTMovieView set up as an IBOutlet. 我将QTMovieView设置为IBOutlet。 I want to have it such that when an item in the NSTableView is selected the QTMovieView's cursor is moved to the time indicated in the selected objects QTTime attribute. 我想要这样,以便在NSTableView中选择一个项目时,QTMovieView的光标将移动到所选对象QTTime属性中指示的时间。 Is there a method that will allow me to move the current time point of a QTMovie to a QTTime? 有没有一种方法可以让我将QTMovie的当前时间点移至QTTime?

您是否尝试过setCurrentTime:?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM