def __init__(self, parent=None):
super(MpvWidget, self).__init__(parent)
# Make the frame black, so that the video frame
# is distinguishable from the rest when no
# video is loaded yet
self.setStyleSheet("background-color:black;")
self.setMouseTracking(True)
self.setContextMenuPolicy(Qt.CustomContextMenu)
self.customContextMenuRequested.connect(self.contextMenu)
self.cursortimer = QTimer(self)
self.cursortimer.setSingleShot(True)
self.cursortimer.timeout.connect(hideCursor)
评论列表
文章目录